PDA

View Full Version : How does Qml call fucntions which are neither slots nor Q_INVOKABLE



ustulation
16th June 2013, 09:52
QAbstractItemModel has data(), roleName() etc functions which I guess is used by the Qml ListView (for eg.,) to retrieve information about the items it is supposed to display. These are neither slots nor Q_INVOKABLE, so how does Qml call them?

{Qt 5.1 beta and quick 2.0}

anda_skoa
16th June 2013, 19:12
They are most likely called by the C++ code of ListView.

Cheers,
_