ReadyDev
import QtQuick
Window {
id: window
width: 1024
height: 768
visible: true
title: qsTr("ReadyQML")
...
}Window {
id: window
...
Rectangle {
id: bgRect
anchors.fill: parent
gradient: Gradient {
orientation: Gradient.Horizontal
GradientStop { position: 0.0; color: bgGradientStart }
GradientStop { position: 1.0; color: bgGradientStop }
}
...
}
}Window {
id: window
...
property string bgGradientStart: '#0d8bfd'
property string bgGradientStop: '#866aaf'
}Window {
id: window
...
Rectangle {
id: bg
...
Item {
id: bgItem
anchors.fill: parent
anchors.margins: 76.4
LeftPane { id: leftItem }
MiddlePane { id: middleItem }
RightPane { id: rightItem }
}
}
}Window {
id: window
...
property string textColor: '#d9d9d9'
}Window {
id: window
...
property var currentTime: new Date()
}Window {
id: window
...
Timer {
id: dateTimer
interval: 1000
repeat: true
running: true
triggeredOnStart: true
onTriggered: {
currentTime = new Date()
...
}
}
}