Running QML application package
-
wrote on 7 Mar 2014, 07:59 last edited by
Hi all,
I have created a QML application for running Qt 5.2 controls. The main programme uses QQMLEngine for loading the QML file. It is running good when I run it on QtCreator, but fails to run when I run it in separate folder. Please help to solve this. Do I need to add more dependencies.Ansif
-
wrote on 7 Mar 2014, 09:40 last edited by
Hey,
- Which error occures?
- Have you tried to start it from console and check for output?
- Have you checked if your QML-file exists and is in the right folder?
-
wrote on 7 Mar 2014, 11:00 last edited by
Hi onek24,
I am using QQmlApplicationEngine for loading the main.qml file. It will work if i run it in Qt creator. But when i copy the exe to the Qt bin folder and run it from there, then it fails.
Is QQmlApplicationEngine working well ?
Ansif -
wrote on 7 Mar 2014, 11:06 last edited by
Well, QQmlApplicationEngine was introduced in Qt 5.1 and is still a finely useable component. If you are missing some dll's it would output that, so the dependencies shouldn't be a problem.
And what do you mean by "it fails", does it start but doesn't display something or doesn't it even start? -
wrote on 9 Mar 2014, 09:36 last edited by
sorry for the late reply. It was my mistake, hence QQMLApplicationEngine is working fine. There was my own 3rd party dll missing in my system.
I refer it properly in the QML application and it works fine.Anyway thank you for your nice help. Please keep in touch.
Ansif
-
wrote on 10 Mar 2014, 09:18 last edited by
You're welcome, i'm glad that you could solve your problem.
6/6