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

parameter in constructor of a custom qquickitem

$
0
0
Hello, I used : qmlRegisterType<MyClass>("MyLib", 0,1, "MyClass"); to used my class as a custom item in qml. It works fine. But now i would like to use the same class but i want to pass parameter to the constructor of the class. How can i used the qmlRegisterType for this. Thanks matteli

Viewing all articles
Browse latest Browse all 4972

Trending Articles