Changing Positions and Sizes of GUIs in code?
-
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?
-
http://developer.qt.nokia.com/doc/qt-4.8/QWidget.html
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.
-
You may want to take a look at "this thread":http://developer.qt.nokia.com/forums/viewthread/14814/.