“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
↧