How to do it...

Let's get started by following these steps:

  1. Create a new Qt Quick application – Empty project and open up qml.qrc with Qt Creator. Add six images, home.png, map.png, profile.png, search.png, settings.png, and arrow.png to the project as follows:
  1. After that, create and open MainForm.ui.qml as we did in all previous examples. Drag a List View widget from under the Qt Quick – Views category in the Library window onto the canvas. Then, set its Anchors setting to fill the parent size by clicking on the button located in the middle of the Layout window as shown in the following screenshot:
  1. Next, switch over to the script editor, ...

Get Qt5 C++ GUI Programming Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.