Move from QML Only Application to Qt Quick Application with C++
-
When I try running the compiled application I get:
<Unknown File>: File error for URL file:///Users/kp/Desktop/Precision Work/Harvest DU Repository/Main-build-desktop/Main.app/Contents/Resources/QML/QMLFinal.qml
-
Would someone be willing to make a Wiki on the process of going from a QML only application to a Qt Quick C++ Application. It seems like a process many people go through so it would be helpful. I have found the process really difficult and I still have not got it done yet. Thanks.
-
What version of Creator are you using? This might be something that has been recently improved -- I'm compiling Creator from source, and the conversion from QML-only to QML + C++ project seems to "just work", at least for a small test case (and in general, QML support in Creator has been progressing at a very rapid pace in recent months). I've found the Creator team very responsive to feedback -- if you have suggestions for improving the process I'd highly recommend adding a report on bugreports.qt.nokia.com.
Regards,
Michael -
Qt Creator 2.0.94 (2.1.0-rc1)
Based on Qt 4.7.1 (64 bit)Built on Nov 25 2010 at 01:05:40
From revision f9ba753654
-
Try to build it in a directory without spaces in it's path. At least under windows the "Qt Quick Application" template won't work in a directory with spaces in it's path. The windows symptoms were a failure in the copydeploymentfolders step and this looks similar.
There was a bug reported with a patch to fix this but it was closed as a "won't fix" from memory since qmake apparently doesn't handle spaces well either.
-
just to add even Symbian builds don't work when spaces are there in your directory.
-
[quote author="kyleplattner" date="1293051590"]Would someone be willing to make a Wiki on the process of going from a QML only application to a Qt Quick C++ Application. It seems like a process many people go through so it would be helpful. I have found the process really difficult and I still have not got it done yet. Thanks.[/quote]
The SDK already comes with an example I guess.
-
I just tried building one of the pre-supplied examples:
/Developer/Examples/Qt/tutorials/widgets
changing nothing, and I got the same warnings. Could someone please tell me in plain English what is causing this? Running 4.7.1 on a Mac, by the way. Thanks.
-
Or you can put make argument -no-copy in qtcreator
-
[quote author="BrEaDFace" date="1311069067"]Or you can put make argument -no-copy in qtcreator[/quote]
Thanks, the -no-copy argument worked. Interesting how every Example project(at least QML examples) have this problem and they didn't make sure that they compile right.
Using QtCreator 2.5.2 with Qt 4.8.1Btw, if Shadow Build is activated this problem doesn't appear.