import QtQuick import QtQuick.Layouts import QtQuick.Controls import FluentUI.Controls import Gallery ScrollablePage { id: page title: qsTr("DialogWindow") CardHighlight{ Layout.fillWidth: true codeSnippet: `import QtQuick import QtQuick.Layouts import QtQuick.Controls import FluentUI.Controls Item{ id: root width: parent.width height: layout_content.height Column{ id: layout_content anchors.right: parent.right anchors.left: parent.left spacing: 20 Button { text: qsTr("Input") onClicked: inputDialog.open() width: 120 DialogWindow { id: inputDialog title: qsTr("Input") standardButtons: Dialog.Ok | Dialog.Cancel ColumnLayout { spacing: 20 anchors.fill: parent Label { elide: Label.ElideRight text: qsTr("Please enter the credentials:") Layout.fillWidth: true } TextField { focus: true placeholderText: qsTr("Username") Layout.fillWidth: true } TextField { placeholderText: qsTr("Password") echoMode: TextField.PasswordEchoOnEdit Layout.fillWidth: true } } } } } } `} }