I'm writing an application consisting of several pages. One page is a bit special, because it should fill up the whole screen. However, I cannot get rid of the page header, despite the fact that this item is not a page:
import QtQuick 2.0
import Ubuntu.Components 1.0
MainView {
id: mainView
width: units.gu(100)
height: units.gu(75)
useDeprecatedToolbar: false
PageStack {
id: pageStack
Component.onCompleted: pageStack.push(first)
Page {
id: first
title: i18n.tr("First page")
visible: false
Button {
text: "Open second page"
onClicked: pageStack.push(fullscreenComponent)
}
}
}
Component {
id: fullscreenComponent
Rectangle {
anchors.fill: parent
color: "green"
}
}
}
When the button on the first page is pressed, the screen turns green -- as expected -- but I can still see the page header. How can I avoid it?