This is more probaply easy but how to detect in listview situation when list has been scrolled end of list and more data need to loaded from source? I'm using QML + C++ approach in my program (wake up from froze ... )
This is more probaply easy but how to detect in listview situation when list has been scrolled end of list and more data need to loaded from source? I'm using QML + C++ approach in my program (wake up from froze ... )
Maybe by using the change signal handler of atYEnd property?
Cheers,
_
You should implement QAbstractItemModel::fetchMore and QAbstractItemModel::canFetchMore in your model, QML's views know how to use those.
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
thanks spirit. It was just I want it ...
However, I got another problem in this area, I have
qmlRegisterUncreatableType<Status>("Status", 1, 0,
"c_status", "");
and qml file has defination :
import Status 1.0
but qml define undeline with red line and with error message "QML Module not found". What its needed ? Status is Q_ENUM.
Ok,
enums seems to be work even underlined text in import statement. Thread can close now. thanks
It is underlined because Qt Creator doesn't know about it.
The type is registered by your application's C++ code, so it is available to the QML scene at runtime.
Cheers,
_
Bookmarks