loadin qml in engine load
-
I'm creating one qml application in visual studio and if I give release folder to someone it's throwing error
I suspect engine load in cpp. currently I'm using this code to load main qml
engine.load(("qrc:/main.qml")); if(engine.rootObjects().isEmpty()) { return -1; }
I tried of adding main qml in release folder
-
I'm creating one qml application in visual studio and if I give release folder to someone it's throwing error
I suspect engine load in cpp. currently I'm using this code to load main qml
engine.load(("qrc:/main.qml")); if(engine.rootObjects().isEmpty()) { return -1; }
I tried of adding main qml in release folder
@praveen_03 said in loadin qml in engine load:
I give release folder to someone
what exactly did you do? This does not sound like you followed the release/deployment guide.
https://doc.qt.io/qt-6/windows-deployment.html -
I'm creating one qml application in visual studio and if I give release folder to someone it's throwing error
I suspect engine load in cpp. currently I'm using this code to load main qml
engine.load(("qrc:/main.qml")); if(engine.rootObjects().isEmpty()) { return -1; }
I tried of adding main qml in release folder
i had deployed using windeployqt and i tried to run in stand alone application still i'm facing the issue
can you please guide me what's going wrong here
-
i had deployed using windeployqt and i tried to run in stand alone application still i'm facing the issue
can you please guide me what's going wrong here
@praveen_03 like I said before, it helps a lot id you tell es exactly what you did.
It seems like you forgot to use or used the qmldir argument incorrectly
--qmldir <directory> Scan for QML-imports starting from directory.
-
i had deployed using windeployqt and i tried to run in stand alone application still i'm facing the issue
can you please guide me what's going wrong here
@J-Hilk , i had create project in VS and i need to deploy in another system that's my goal.
In main cpp i'm loading this main qml like thisconst QUrl url(QStringLiteral("qrc:/main.qml")); engine.load(url); if(engine.rootObjects().isEmpty()) { return -1; }
I'm new to this platform, sorry for inconvenient reply
-
@J-Hilk , i had create project in VS and i need to deploy in another system that's my goal.
In main cpp i'm loading this main qml like thisconst QUrl url(QStringLiteral("qrc:/main.qml")); engine.load(url); if(engine.rootObjects().isEmpty()) { return -1; }
I'm new to this platform, sorry for inconvenient reply
@praveen_03 said in loadin qml in engine load:
sorry for inconvenient reply
Don't worry as long as you try.
Let me be more precise.
"Please post the command you used to invoke the windeployqt tool. "
if you also supply the absolute path to your main.qml we can actually give you the correct, copy&past-able, command.