views:

403

answers:

1

I admit I am totally new to QT so bare with me. I am used to develop in Delphi, but I have recently moved to developing in Python and with that PyQT (later I'll switch to PySide). Anyway, I'm trying to figure out if there's anything in QT that is equivalent to Delphi's Align property possibilities like alTop, alClient, alRight and so on?

Kind regards, Brian

+6  A: 

There's something better than alignment: layouts! You can create layouts from the Qt Designer or from code. My approach is to start with the smallest unit of grouping and add layouts and spacers as needed and finish with the window layout, which ensures that all the widgets resize with the window.

rpg