O'Reilly logo

Qt 5 Projects by Marco Piccolino

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Setting up the client application

We can now create a client application. The project will be named cccomposer. It will be a sub-project of part2-cute_comics.pro. We can use a Qt Quick Application template from Qt Creator. Once we have added the sub-project, we should end up with a cccomposer.pro file and a main.qml file, among other things. To include our UI module, we shall add the following to cccomposer.pro:

# cccomposer.proinclude(../cutecomics/gui/gui.pri)

Once this is done, we will be able to import the QML module in main.qml with the import cutecomics.gui 1.0 directive.

To show Composition in the client app, we will set up a QML Window (http://doc.qt.io/qt-5.9/qml-qtquick-window-window.html) and create a Scene3D to contain it, as ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required