Ever since I got myself started using QML I have run into some funny business dealing with certain margin sizes. One of my oh so bad ideas was to recalculate the margin of an
Item that’s already in a layout totally disregarding the
Layout.margins property that’s available in every Layout container. This sounds all simple, seriously, it feels like one of those things that you wouldn’t expect to do but to those who are still digesting QML it’s a very big miss.
Anyways, always use layouts and its available properties or you’ll be in a world of pain.