Re: [Interest] QML data models question

2012-07-11 Thread Sven Anderson
Hi Harri, On 11.07.2012 11:02, Harri Pasanen wrote: > How do I access list model data properties without a delegate? I had the same problem. To the class MyModel that inherits from QAbstractListModel I added a property Q_PROPERTY(QDeclarativeListProperty myItems READ myItems NOTIFY myItemsChan

[Interest] QML data models question

2012-07-11 Thread Harri Pasanen
How do I access list model data properties without a delegate? I'm using a SelectionDialog with model: audioList If audioList is implemented as QStringList in C++, I can access the model data with audioList[selectedIndex]. However, when using QAbstractListModel, my intuition failed. I would