QQmlPrivate et al are from QtQuick 2. Elsewhere, you #include <QDeclarativeWhatever> stuff, which is QtQuick 1. Your link / build options are wrong, I assume.
QQmlListProperty works fine with QtQuick 2, and QDeclarativeListProperty works fine with QtQuick1 – but don’t mix QtQuick1 and QtQuick2, that won’t work.
If you want an example of using QQmlListProperty / QDeclarativeListProperty you can see, for example: https://github.com/nemomobile/nemo-qml-plugin-social/blob/master/src/facebook/facebookphotointerface.h
Cheers,
Chris.
↧
exposing QListto QML : registering QQmlListProperty in QML type system using qmlRegisterType method
↧