Warning, /maui/mauikit/examples/InputDialog.qml is written in an unsupported language. File is not indexed.
0001 import QtQuick 0002 import QtQuick.Controls 0003 import QtQuick.Layouts 0004 import org.mauikit.controls as Maui 0005 0006 Maui.ApplicationWindow 0007 { 0008 id: root 0009 0010 Maui.Page 0011 { 0012 id: _page 0013 anchors.fill: parent 0014 Maui.Controls.showCSD: true 0015 headBar.forceCenterMiddleContent: true 0016 0017 Button 0018 { 0019 text: "Open Dialog" 0020 onClicked: _dialog.open() 0021 0022 anchors.centerIn: parent 0023 } 0024 0025 Maui.InputDialog 0026 { 0027 id: _dialog 0028 title: "Hello" 0029 message: "An input dialog that request some information ot be entered." 0030 0031 template.iconSource: "dialog-question" 0032 textEntry.placeholderText: "Give me a name." 0033 0034 onRejected: close() 0035 onFinished: (text) => console.log(text) 0036 } 0037 } 0038 } 0039