mirror of
https://github.com/stemoretti/BaseUI.git
synced 2025-05-25 15:20:23 -04:00
28 lines
597 B
QML
28 lines
597 B
QML
import QtQuick
|
|
import QtQuick.Controls
|
|
import QtQuick.Controls.Material
|
|
|
|
ApplicationWindow {
|
|
id: root
|
|
|
|
property alias initialPage: stackView.initialItem
|
|
|
|
visible: true
|
|
locale: Qt.locale("en_US")
|
|
|
|
header: stackView.currentItem?.appToolBar
|
|
|
|
StackView {
|
|
id: stackView
|
|
|
|
anchors.fill: parent
|
|
|
|
// make sure that the phone physical back button will get key events
|
|
onCurrentItemChanged: stackView.currentItem.forceActiveFocus()
|
|
}
|
|
|
|
Material.primary: Style.primaryColor
|
|
Material.accent: Style.accentColor
|
|
Material.theme: Style.theme
|
|
}
|