Is it possible to compile/run a QML/C++ program from QtCreator (without using terminal)
-
wrote on 21 Feb 2014, 19:44 last edited by
Still working on the gettingStartedQml example. I found the way to compile the C++ filedialog from the command line and run the program using qmlscene, again from the terminal. Is it possible to do all of this using only QtCreator ?
I tried to compile the C++ using command line and launch the qml using QtCreator but without success. It keeps telling me that the c++ libraries can not be found.
Thanks for any help
Bidochon
ps: here is the gettingStartedQml tutorial page (http://qt-project.org/doc/qt-5/gettingstartedqml.html#defining-a-button-and-a-menu)
I'm a mac user (10.8.5) using Qt 5.2.1 (Qt Creator 3.0.1)
-
Hi,
In Qt Creator, select:
File -> new File or Project... -> Applications -> Qt Quick Application -> Qt Quick 2.0
This will generate the C++ code for you to run your QML app in Qt Creator.
By the way, that tutorial is badly-written, and you will encounter name clashes later (e.g. see http://qt-project.org/forums/viewthread/38594/ ). I recommend this one instead: http://qt-project.org/doc/qt-5/qml-tutorial.html
-
wrote on 23 Feb 2014, 00:22 last edited by
Excellent. Thanks. Will read/learn this one.
1/3