diff options
Diffstat (limited to 'qt/org.eclipse.cdt.qt.core/templates/project/Qt5/baseName.qml')
-rw-r--r-- | qt/org.eclipse.cdt.qt.core/templates/project/Qt5/baseName.qml | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/qt/org.eclipse.cdt.qt.core/templates/project/Qt5/baseName.qml b/qt/org.eclipse.cdt.qt.core/templates/project/Qt5/baseName.qml new file mode 100644 index 00000000000..527072d536a --- /dev/null +++ b/qt/org.eclipse.cdt.qt.core/templates/project/Qt5/baseName.qml @@ -0,0 +1,38 @@ +import QtQuick 2.0 + +Rectangle { + width: 480 + height: 320 + color: "lightblue" + + MouseArea { + anchors.fill: parent + onClicked: Qt.quit() + } + + Text { + id: title + text: "Hello World from Qt5" + font.family: "Helvetica" + font.pointSize: 24 + anchors.centerIn: parent + } + + Text { + id: datetime + objectName: "datetime" + font.family: "Helvetica" + font.pointSize: 16 + anchors { + horizontalCenter: title.horizontalCenter + top: title.bottom + } + + Connections { + target: datetimeModel + onChanged: { + datetime.text = now + } + } + } +} |