Thanks for the input. I actually ended up with a different solution. Here's my code for the dialog:
Dialog {
id: exitDialog
anchors.centerIn: parent
title: [
Text {
anchors.top: parent.top
anchors.topMargin: 10
anchors.left: parent.left
anchors.leftMargin: 10
font.bold: true
color: "white"
text: "Keep list?"
}
]
content: [
Button {
anchors.left: parent.left
anchors.leftMargin: 50
anchors.verticalCenter: parent.verticalCenter
text: "Yes"
},
Button {
anchors.right: parent.right
anchors.rightMargin: 50
anchors.verticalCenter: parent.verticalCenter
text: "No"
}
]
}
Dialog {
id: exitDialog
anchors.centerIn: parent
title: [
Text {
anchors.top: parent.top
anchors.topMargin: 10
anchors.left: parent.left
anchors.leftMargin: 10
font.bold: true
color: "white"
text: "Keep list?"
}
]
content: [
Button {
anchors.left: parent.left
anchors.leftMargin: 50
anchors.verticalCenter: parent.verticalCenter
text: "Yes"
},
Button {
anchors.right: parent.right
anchors.rightMargin: 50
anchors.verticalCenter: parent.verticalCenter
text: "No"
}
]
}
To copy to clipboard, switch view to plain text mode
Bookmarks