BLOGS BY TOPIC▼
BLOGS BY AUTHOR▼
BLOGS BY YEAR▼
Posted by Andy Brown on 21 June 2022
You need a minimum screen resolution of about 700 pixels width to see our blogs. This is because they contain diagrams and tables which would not be viewable easily on a mobile phone or small laptop. Please use a larger tablet, notebook or desktop computer, or change your screen resolution settings.
QT comes with its own designer, although many diehard programmers prefer to write commands to position widgets on screen (see later in this series of blogs for more on this):
Here I've created a simple form containing 4 widgets: a Label widget, a LineEdit widget and two PushButton widgets.
The designer comes with an Object Inspector window:
The parts of the form shown above as displayed in Object Inspector (every blank form comes with a menu bar and a status bar by default, although at the moment these will be blank).
There's also a conventional Properties window:
Some of the properties for the OK button in our basic form.
The other main window is the Widget Box, which allows you to add widgets (often called controls in Microsoft applications) to a form:
The start of the widgets for QT Designer - there are many more, as shown in the next part of this blog.
The QT Designer is straightforward to use, although understanding the behaviour of layouts is challenging!