QtOnAndroid

QML Example

QML Window vs Widget | | QML GPS Example

As a starting point, a simple qml example application, that is ready for deployment, can be checked out via SVN:

svn co svn://schorsch.efi.fh-nuernberg.de/qt-android/simpleqml

As described in the previous sections, the example just imports the basic QtQuick package and draws a white text on a green background:

import QtQuick 2.0

Rectangle {
    id: top
    color: "green"

    Text {
        anchors.centerIn: parent
        font.pointSize: 10
        color: "white"
        text: "Size=" + top.width + "x" + top.height
    }
}

To be ready for deployment the above example contains a corresponding .qrc and a .pro file, which can be opened and deployed with QT Creator right away.

QML Window vs Widget | | QML GPS Example

Options: