BLOGS BY TOPIC▼
BLOGS BY AUTHOR▼
BLOGS BY YEAR▼
If you need to build a GUI system in Python, PyQt5 is probably the best choice, but don't take our word for it - read this blog and see what you think.
- Should you be using PyQt?
- QT Designer (this blog)
- Widgets
- Layouts
- Forms and code
- Slots and Signals
- CSS and Formatting
- Models and Data
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 Designer
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!
- Should you be using PyQt?
- QT Designer (this blog)
- Widgets
- Layouts
- Forms and code
- Slots and Signals
- CSS and Formatting
- Models and Data