⚠️ Forum Maintenance: Feb 6th, 8am - 14pm (UTC+2)
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.