0
rated 0 times
[
0]
[
0]
/ answers: 1 / hits: 1591
/ 2 Years ago, tue, march 8, 2022, 9:35:03
If i use the PopupUtils.open()
command in the Component.onCompleted
property of the any item it does nothing, example:
Rectangle {
id: rect
height: 600
width: height
Component.onCompleted: {
PopupUtils.open(dialog, rect)
}
Component {
id: dialog
Dialog {
id: dialogue
title: "Save file"
text: "Are you sure that you want to save this file?"
Button {
text: "cancel"
onClicked: PopupUtils.close(dialogue)
}
Button {
text: "overwrite previous version"
color: "orange"
onClicked: PopupUtils.close(dialogue)
}
Button {
text: "save a copy"
color: "orange"
onClicked: PopupUtils.close(dialogue)
}
}
}
how can i properly display a popup dialog just after the app has started?
More From » application-development