FluentUI/example/qml/page/T_Text.qml

32 lines
625 B
QML
Raw Normal View History

2023-08-24 15:50:37 +08:00
import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
import QtQuick.Window 2.15
import FluentUI 1.0
2023-08-26 17:20:30 +08:00
import "../component"
2023-05-09 19:52:35 +08:00
FluScrollablePage{
2024-03-09 15:35:48 +08:00
title: qsTr("Text")
2023-05-09 19:52:35 +08:00
FluArea{
Layout.fillWidth: true
2024-03-29 16:23:16 +08:00
Layout.preferredHeight: 60
padding: 10
2023-05-09 19:52:35 +08:00
FluCopyableText{
2024-03-09 15:35:48 +08:00
text: qsTr("This is a text that can be copied")
2023-05-09 19:52:35 +08:00
anchors.verticalCenter: parent.verticalCenter
}
}
CodeExpander{
Layout.fillWidth: true
2024-03-29 16:23:16 +08:00
Layout.topMargin: -6
2023-05-09 19:52:35 +08:00
code:'FluCopyableText{
2024-03-09 15:35:48 +08:00
text: qsTr("This is a text that can be copied")
2023-05-09 19:52:35 +08:00
}'
}
}