MM

Size: a a a
MM
EP
AS
AS
import QtQuick 2.15
import QtQuick.Window 2.15
import QtQuick.Layouts 1.15
import QtQuick.Controls 2.15
Window {
width: 640
height: 480
visible: true
title: qsTr("Hello World")
property color customColor: "red"
ColumnLayout {
anchors.fill: parent
Rectangle {
id: rectangle
color: customColor
Layout.fillWidth: true
Layout.fillHeight: true
states: [
State {
when: timer.running
PropertyChanges {
target: rectangle
color: "green"
}
}
]
}
Timer {
id: timer
repeat: false
interval: 5000
}
Button {
text: "Temporary Change Rectange Color To Green"
Layout.fillWidth: true
onClicked: {
timer.start()
}
}
}
}
AS
АТ
class Q_CORE_EXPORT QString
{
...
Q_REQUIRED_RESULT QString trimmed() const &
{ return trimmed_helper(*this); }
Q_REQUIRED_RESULT QString trimmed() &&
{ return trimmed_helper(*this); }
AS
СС
AS
АТ
MM