Try these questions to test your knowledge from this chapter:
- You are preparing to distribute your text editor application, and want to ensure that the user is given a monospaced font by default, no matter what platform they use. What two ways can you use to accomplish this?
- As closely as possible, try to mimic the following text using QFont:
- Can you explain the difference between QImage, QPixmap, and QIcon?
- You have defined the following .qrc file for your application, run pyrcc5, and imported the resource library in your script. How would you load this image into QPixmap?
<RCC>
<qresource prefix="foodItems">
<file alias="pancakes.png">pc_img.45234.png</file>
</qresource>
</RCC>
- Using QPalette, how would you tile the background of a QWidget object with the tile.png image?
- You are trying...