Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Changing Positions and Sizes of GUIs in code?
Flurite last edited by
I'm sorry if this question is obvious or easy to find, but I'm new to C++/Qt.
Could somebody tell me how you would change the position and size of a GUI in code?
Guest last edited by
There is a wide range of setter methods to control the size of GUI elements, depending on your needs, for both absolute size and relative size policy.
As for position, you would typically want to use layouts to position (as well as scale) your widgets. Absolute positioning is kind of... last century and very static - resizing your window will break your interface.
Blizzard last edited by
You may want to take a look at "this thread":http://developer.qt.nokia.com/forums/viewthread/14814/.