Re: [Interest] QAbstractItemModel and Qml - modelData is null

2017-10-17 Thread Nuno Santos
Pierre, Thanks for the tip. It worked. I got that from an example online, but not from official documentation. IPatch extends QObject so it is basically a QObject. I have changed the cast to QObject and it is working now! Thanks! Best regards, Nuno > On 16 Oct 2017, at 22:16, Pierre-Yves

Re: [Interest] QAbstractItemModel and Qml - modelData is null

2017-10-16 Thread Pierre-Yves Siret
2017-10-16 20:11 GMT+02:00 Nuno Santos : > Hi, > > I have for the first time defined a QAbstractItemModel to use on Qml > because I needed to have a filtered version of this model > using QSortFilterProxyModel. > > I have the documentation here ->

[Interest] QAbstractItemModel and Qml - modelData is null

2017-10-16 Thread Nuno Santos
Hi, I have for the first time defined a QAbstractItemModel to use on Qml because I needed to have a filtered version of this model using QSortFilterProxyModel. I have the documentation here -> http://doc.qt.io/archives/qt-5.5/qtquick-modelviewsdata-cppmodels.html