Try these questions to test your knowledge from this chapter:
- 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?
- GUIs are composed of widgets. Open some GUI applications on your computer and try to identify as many widgets as you can.
- The following program crashes. Figure out why, and fix it so that it shows a window:
from PyQt5.QtWidgets import *
app = QWidget()
app.show()
QApplication().exec()
- The QWidget class has a property called statusTip. Which of these are most likely to be the names of the accessor methods for this property?
- getStatusTip() and setStatusTip()
- statusTip() ...