I'm using Qt 5.5 to create a small app. In the app, I'm manually creating a component like so:
QQmlComponent component(engine, QUrl("qrc:/Box.qml"));
assert(component.isReady());
My .qrc file IS included in the .pro file like so:
RESOURCES += qml.qrc
All works well when I run from Qt creator. However, when I deploy the app using the macdeployqt tool and try to run the app I get that assert hit. Sure enough, I tried to put a loop around the .isReady() and it will hang forever.
What is the proper way for doing this? My qml component is working fine when in the Qt creator, so why does it fail in deployment?
Thanks