Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Error:QQmlComponent:Component is not ready
Javeria last edited by
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"));
wthung last edited by
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.