Displaying information using Model View
Qt includes a Model View framework that maintains separation between the way data is organized and managed, and the way that it is presented to the user. In this section, we will learn how to make use of the model view, in particular by using the list view to display information and at the same time apply our own customization to make it look slick.
How to do it…
- Create a new Qt Quick application project and open up
qml.qrc
with Qt Creator. Add six images,home.png
,map.png
,profile.png
,search.png
,settings.png
, andarrow.png
, to the project: - After that, open up
MainForm.ui.qml
. Delete all the default widgets ...
Get Qt5 C++ GUI Programming Cookbook 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.