Hello,
I thought this must be mentioned hundred times everywhere but after spending many hours searching the Internet, I didn’t find anything really useful.
What I want to do is very simple. I have some data which I read from database (in C++ code) and I want to display them in my QML UI. I know that I need to subclass QAbstractListModel and then bind it to my QML.
I already implemented this in Python (PySide) and Qt4 but now I’m converting my program to C++ and Qt5. I’m afraid I won’t be able to do it correctly without an example or a guide. But unfortunately I couldn’t find any. I found some Qt 4.x examples but also I saw some information that it was changed in Qt5.
Do you know about any guide or working example on using QAbstractListModel and ListView? Thank you.
↧