- Qt is written in C++, a language that is very different from Python. What are some of the major differences between the two languages? How might these differences come across as we use Qt in Python?
The C++ language differences impact PyQt in several ways, for example:
-
- Its static typing and type-safe functions mean that PyQt is fairly strict about which functions can be called and which variables can be passed, in some circumstances.
- The relative lack of built-in data types in C++ means that Qt provides a rich selection of data types, many of which we must use in Python due to type safety.
- The use of enum types, common in C++ but rare in Python, is pervasive in Qt.
- GUIs are composed of widgets. Open some GUI applications on your computer and try to identify as many widgets as you can.
Some examples might include the following:
-
- Buttons
- Checkboxes
- Radio buttons...