Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

[solved] Custom dialog

$
0
0
And another sample, based on window: import QtQuick 2.0 import QtQuick.Controls 1.1 import QtQuick.Layouts 1.1 import QtQuick.Window 2.0     Rectangle {     width: 400     height: 400       Window {         id: win_dialog           flags: Qt.Dialog         title: "Error message"         modality: Qt.ApplicationModal           ColumnLayout {             anchors.fill: parent               Text {                 text: "Text of sample"             }               Button {                 text: "close"                 onClicked: {                     win_dialog.visible = false;                 }             }         }           visible: false     }       Button {         text: "Show dialog"         onClicked: win_dialog.visible = true;     } }

Viewing all articles
Browse latest Browse all 4972

Trending Articles