- How would you create a QWidget that is fullscreen, has no window frame, and uses the hourglass cursor?
The code looks like this:
widget = QWidget(cursor=qtc.Qt.WaitCursor)
widget.setWindowState(qtc.Qt.WindowFullScreen)
widget.setWindowFlags(qtc.Qt.FramelessWindowHint)
- Suppose that you're asked to design a data-entry form for a computer inventory database. Choose the best widget to use for each of the following fields:
-
- Computer make: One of eight brands that your company purchases
- Processor speed: The CPU speed in GHz
- Memory amount: The amount of RAM, in whole MB
- Hostname: The computer's hostname
- Video make: Whether the video hardware is Nvidia, AMD, or Intel
- OEM license: Whether the computer uses an OEM license
This table lists some possible answers:
Field | Widget(s) | Explanation |
---|---|---|
Computer make | QComboBox | For choosing between a list of many... |