Chapter 4.  Conquering the Desktop UI

In the previous chapter, we built the brain of our gallery using Qt models. It is now time to build a desktop application using this engine. This software will use all the features offered by the gallery-core library, leading to a completely usable gallery on your computer.

The first task will be to link your project-shared library to this new application. Then you will learn how to create custom widgets, when to use Qt views, and how to synchronize them with the model.

The following topics will be covered in this chapter:

  • Linking the application to a project library
  • Qt model/view
  • Qt resource file
  • Promoting custom widgets

Creating a GUI linked to a core shared library

The gallery-core shared library is now ready. ...

Get Mastering Qt 5 now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.