FluentUI/example/qml/page/T_Text.qml

33 lines
639 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
Layout.topMargin: 20
height: 60
paddings: 10
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
Layout.topMargin: -1
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
}'
}
}