Better_Software_Header_MobileBetter_Software_Header_Web

Find what you need - explore our website and developer resources

Embedding QML: Why, Where, and How

Figure 1: Qt Quick Clock screen

target.path = $$OUT_PWD/../install
./plugins.qml
./extensionpluginsapps
./TimeExample/hour.png
./TimeExample/minute.png
./TimeExample/clock.png
./TimeExample/center.png
./TimeExample/Clock.qml
./TimeExample
<RCC>
   <qresource prefix="/clock">
       <file>Clock.qml</file>
       <file>center.png</file>
       <file>clock.png</file>
       <file>hour.png</file>
       <file>minute.png</file>
   </qresource>
</RCC>
module TimeExample
Clock 1.0 qrc:///clock/Clock.qml
plugin qmlqtimeexampleplugin
./extensionpluginsapps
 ./TimeExample/qmldir
 ./TimeExample/libqmlqtimeexampleplugin.so
view.setSource(QUrl(QStringLiteral("qrc:/plugins.qml")));
view.show();

7 Comments

9 - Nov - 2015

NickD

1 - Dec - 2015

Laurent

15 - Nov - 2015

jiangcaiyang

27 - Nov - 2015

Thomas

1 - Dec - 2015

Laurent

2 - Dec - 2015

Thomas

2 - Dec - 2015

Thomas