-
Notifications
You must be signed in to change notification settings - Fork 474
Open
Description
Here is my code:
import QtQuick 2.7
import QtQuick.Window 2.2
import Material 0.3
ApplicationWindow {
visible: true
title: qsTr("PageStack")
Item {
anchors.centerIn: parent
Column {
anchors.centerIn: parent
spacing: dp(20)
Button {
text: "Register"
elevation: 1
anchors.horizontalCenter: parent.horizontalCenter
onClicked: {
onClicked: pageStack.push(Qt.resolvedUrl("Register.qml"))
}
}
}
}
And the output when I click on the button is:
file:///home/$USER/Qt5.7.0/5.7/gcc_64/qml/QtQuick/Controls/StackView.qml:919: Error: Cannot assign to non-existent property "parent"
How can I use PageStack properly?
Metadata
Metadata
Assignees
Labels
No labels