Details
-
Bug
-
Resolution: Cannot Reproduce
-
P1: Critical
-
None
-
5.3.0 RC1
-
None
Description
import QtQuick 2.2 import QtQuick.Controls 1.1 import QtQuick.Dialogs 1.1 ApplicationWindow { id: mainWindow visible: true title: "Hello World" onHeightChanged: console.log("aw height " + height) menuBar: MenuBar { Menu { title: qsTr("File") MenuItem { id: showDialogItem text: qsTr("File dialog") onTriggered: { fileOpenDialog.visible = true; } } MenuItem { text: qsTr("Exit") onTriggered: Qt.quit(); } } } FileDialog { id: fileOpenDialog; } MessageDialog { id: messageDialog title: "May I have your attention please" text: "It's so cool that you are using Qt Quick." onAccepted: { console.log("And of course you could only agree.") } } Text { text: qsTr("Hello World") anchors.centerIn: parent } Button { text: "Open file..." anchors.bottom: parent.bottom onClicked: fileOpenDialog.visible = true } Button { text: "say hi" anchors.bottom: parent.bottom anchors.right: parent.right onClicked: messageDialog.visible = true } }
Not doing bottom anchors on the buttons probably helps.
Attachments
Issue Links
- relates to
-
QTBUG-38123 /quick/dialogs/systemdialog example on Mac/Windows: all buttons are not visible on HelloWorld custom dialog
- Closed