PageStack QML Type
This attached property makes possible to access from anywhere the page stack this page was pushed into. More...
| Import Statement: | import org.kde.kirigami.layouts |
| Since: | 6.10 |
Attached Properties
- pageStack : Item
Attached Signals
- closeDialog()
(since 6.20)
Attached Methods
- void clear()
- void pop(variant page)
- void push(variant page, object properties)
- void replace(variant page, object properties)
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
|
Close the currently opened dialog, which was opened with PageRow::pushDialogLayer.
Note: The corresponding handler is onCloseDialog.
This signal was introduced in 6.20.
Attached Method Documentation
void clear() |
void pop(variant page) |
void push(variant page, object properties) |
void replace(variant page, object properties) |