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:
@
QQmlEngine engine;
DetectSquares m;
engine.rootContext()->setContextProperty("m",&m);
QQmlComponent component(&engine, QUrl::fromLocalFile("qrc:/main.qml"));
component.create();@ -
You can also use "errors()":http://doc.qt.io/qt-5/qqmlcomponent.html#errors.