Please don’t do this:
Or this:
QT builder has all sort of nifty tricks to keep the layout pretty, but we can’t leverage that when parts of the UI are generated from code. Editing the XML files is probably fine though.
Notice how the amount field in interface builder is given full width:
The currency selection dropdown is added later:
If I then try to add some UI element to the right of the currency dropdown (like a bech32 check-box), things get ugly:
Note how “format” is too far to the right, and this checkbox should really be snapped to the left. Of course it can be fixed with even more UI generating code, but I’ve been there, it’s a dark place :-)
I’ll try to refactor this specific example.
I’ll be careful not to create a giant xml diff in the process.