Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

exposing QListto QML : registering QQmlListProperty in QML type system using qmlRegisterType method

$
0
0
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.

Viewing all articles
Browse latest Browse all 4972

Trending Articles