Error:QQmlComponent:Component is not ready
I am simply trying to set context property for my QML file with an Object but i am getting this error:
QQmlComponent component(&engine, QUrl::fromLocalFile("qrc:/main.qml"));
That means something wrong in the main.qml.
Usually I use qmlviewer to debug the qml file since it outputs more informative data than "Component is not ready".
You can also use "errors()":http://doc.qt.io/qt-5/qqmlcomponent.html#errors.