Chapter 1. Standard Qt Widgets
Qt Widgets are not the new kid on the block, but they still do have their place in applications that target mobile and embedded devices. They are well formed, predictable and have standard UI elements.
Recognizable UI elements are found in Qt Widgets and work great on laptops, which are simply mobile desktops. In this chapter, you will learn to design standard looking applications. Basic widgets such as menus, icons, and lists will be discussed with an emphasis on how to constrain the user interface to medium and small-sized displays. Topics we will discuss include how to use Qt's dynamic layouts to handle orientation changes. Classes such as QGraphicsScene
, QGraphicsView
, and QGraphicsItem
will be used. Layout API such as QVBoxLayout
, QGridLayout
, and QStackedLayout
will be discussed.
In this chapter we will cover:
- Using Qt Creator and Qt Widgets to create a mobile app and run on the device
- Differences between desktop and mobile apps including screen size, memory, gestures
- Using Qt Widgets in dynamic layouts for easy screen size and orientation changes
- Using
QGraphicsView
for graphical apps