PageStack QML Type
This attached property makes possible to access from anywhere the page stack this page was pushed into. This type was introduced in Qt 6.10. More...
- Import Statement: import org.kde.kirigami.layouts
- Since: Qt 6.10
Detailed Description
It can be an instance of PageRow or a StackView from QtQuick Controls.
Kirigami.Page {
id: root
Button {
text: "Push Page"
onClicked: Kirigami.PageStack.push(Qt.resolvedurl("AnotherPage"));
}
}
Attached Property Documentation
PageStack.pageStack : Item
This property holds the pageStack where this page was pushed.
It will point to the proper instance in the parent hierarchy and normally is not necessary to explicitly write it.
Write on this property only if it's desired this attached property and those of all the children to point to a different PageRow or StackView
Attached Signal Documentation
[since 6.20] closeDialog()
Close the currently opened dialog, which was opened with PageRow::pushDialogLayer.
Note: The corresponding handler is
onCloseDialog.
This signal was introduced in Qt 6.20.