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

how to use a class written in javascript to qml ?

$
0
0
“Component is not ready” suggests that it takes time for your component to load. You need to wait until it finishes loading, before assigning it to a variable. Do the assignment inside the Component.onCompleted() signal handler. See: http://qt-project.org/doc/qt-5/qml-qtqml-component.html#onCompleted-signal http://qt-project.org/doc/qt-5/qml-var.html#change-notification-semantics

Viewing all articles
Browse latest Browse all 4972

Trending Articles