[Qt-qml] deriving from classes with REVISION
Christian Kamm
christian.d.kamm at nokia.com
Fri Sep 16 14:11:39 CEST 2011
Hi,
is there a way to derive from a class with REVISIONed properties while making
those properties available from the derived type in QML?
Example:
cpp
class MyItem : public QDeclarativeItem { ... }
qmlRegisterType<MyItem>("MyModule", 1, 0, "MyItem");
qml
import MyModule 1.0
MyItem { implicitWidth: 12 } // error!
I've already tried using
qmlRegisterType<MyItem, 1>(...)
or increasing MyModule's version to 1.1, but the error remains the same.
Any suggestions?
Christian
More information about the Qt-qml
mailing list