Did you put the qml files there as well? Can your program find them?
Did you put the qml files there as well? Can your program find them?
Baso (3rd February 2013)
If you mean putting the main.qml file of the project in the same folder with *.exe file, I did it and it didn't do any different
I don't know where it should be put. It depends on your application. See if your app starts at all and see if it can find the files it needs. Did you remember to deploy the QtQtuick2 plugin as well? And possibly other plugins your code depends on?
Baso (3rd February 2013)
LOOk, I will tell you what exactly I do
I choose Qt quick 2 application, then give it a name and directory to save,then I go to projects from the left->build setting-edit build configuration and I choose release, then I just run the application from The Qt creator, it runs very well it shows my the hello world window and then I click it and it is closed.
I go to where I saved the project, I find two folders one for the project and the other for the build, I open the one for the build and inside it I open the folder release, hence I find the *.exe file, If I run it, it asks for some dlls, I go to Qt directory in C portion I make a search for the dlls or simply open the bin folder and get the required dlls, I copy the dlls and paste them in the same release folder where the *.exe file lies,then I run the *.exe file and it doesn't show anything no error no file required nothing at all.
Then I got the *qml file form the build foldre -> qml folder and copy it in the same release folder with the *.exe, and run and also nothing happen.
I'm sorry for all of that writhing, but I want to show you exactly what I do, cause I really stuck here, and can't do anything from 2 days
Thank you
That's probably wrong. Your application probably expects the file to be in the "qml" folder if it was initially there.
There is a difference between "nothing happens" and "I can't see my QML UI". If "nothing happens" then the app doesn't start which is probably caused by missing dlls. If "I can't see my QML UI" then the process runs (the mandatory DLLs are present) but can't display your UI (missing QML file, missing plugins). You need to teach your app to report its state if you're unable or unwilling to use external tools to verify what is wrong.and run and also nothing happen.
For QtQuick apps to work, you need at least the following:
1. Qt dlls (QtCore, QtGui, QtQuick are the bare minimum)
2. their dependencies and compiler runtime
3. your application resources (qml files, images, etc.)
4. plugins for QML that your app relies on (probably at least "qml/QtQuick.2/*", possibly others)
5. Qt dlls those plugins rely on and Qt plugins your resources rely on (e.g. imageformats plugins)
6. your application executable
If unsure, perform dynamic (runtime) inspection of your program using the dependency walker. It will tell you which libraries are used by your app. Then you have to make sure all of them are inplace when you deploy your app.
Baso (3rd February 2013)
Bookmarks