Commit a7ebfda7 authored by Marzanna's avatar Marzanna Committed by Linus Jahn

Use resources to load QML files (#14)

QUrl::fromLocalFile() expects local file to exist thus it doesn't work with regular builds.
parent b651ed98
......@@ -26,7 +26,7 @@ int main(int argc, char *argv[])
QQmlContext *ctxt = view.rootContext();
ctxt->setContextProperty("kaidan", &kaidan);
view.setSource(QUrl::fromLocalFile("main.qml"));
view.setSource(QUrl("qrc:/main.qml"));
view.show();
return app.exec();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment