QML at the moment lacks basic system commands, so I am looking for the most simple template to write to /tmp/text.txt
.
QML at the moment lacks basic system commands, so I am looking for the most simple template to write to /tmp/text.txt
.
New File or Project. Choose the QML App with C++ Plugin. qmake is generally easier to pick up than cmake.
Choose a name for your project. Next.
Usually you can just choose the default framework selected. Next.
Add Bazaar Version Control, as it works well with Launchpad. You can try Git too if you are familiar with it. Launchpad supports both, but Git support is still pretty new as of July 2016.
Edit your header, adding the three lines from the comments.
Edit your source, adding just the function on the bottom.
Edit your Main.qml file, adding just the component on the bottom.
Run your application, and find the text file in your build directory. The build directory is in the same directory of your project directory, and it has the word "build-" prefixed to the beginning.