Read our blogs, tips and tutorials
Try our exercises or test your skills
Watch our tutorial videos or shorts
Take a self-paced course
Read our recent newsletters
License our courseware
Book expert consultancy
Buy our publications
Get help in using our site
547 attributed reviews in the last 3 years
Refreshingly small course sizes
Outstandingly good courseware
Whizzy online classrooms
Wise Owl trainers only (no freelancers)
Almost no cancellations
We have genuine integrity
We invoice after training
Review 30+ years of Wise Owl
View our top 100 clients
Search our website
We also send out useful tips in a monthly email newsletter ...
Should you be using QT for Python as a GUI? Part two of an eight-part series of blogs |
---|
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.
|
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!
Parts of this blog |
---|
|
Some other pages relevant to the above blogs include:
Kingsmoor House
Railway Street
GLOSSOP
SK13 2AA
Landmark Offices
99 Bishopsgate
LONDON
EC2M 3XD
Holiday Inn
25 Aytoun Street
MANCHESTER
M1 3AE
© Wise Owl Business Solutions Ltd 2024. All Rights Reserved.