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

import c++ type registered with qmlRegisterSingletonType

$
0
0
Hi, i’ve declared a singleton class and registered in with  qmlRegisterSingletonType<presbiopia>("MyClass", 1, 0, "Class",classProvider); where classProvider simply return an instance of MyClass then in qml i declare  import MyClass 1.0 and it gives me error such QML module not found, but if i try to call Class.property of a property i declared works fine, even with methods. Just it gives me no hints. Already tried to clean and build the project. Just annoying i know, it works, but is there anyone who as encountered this. Thanks A lot! ICAP.

Viewing all articles
Browse latest Browse all 4972

Trending Articles