Good day I’m new to Felgo ,I wanted to ask you if you have an example of a list than to do others page qml,this is my Qml code why use in QT:
import QtQuick 2.0
import QtQuick.Controls 2.5
import QtQuick.Layouts 1.12
ApplicationWindow {
id: window
width: 500
height: 500
visible:true
Rectangle {
id: rectangle
color: "#363636"
anchors.fill: parent
}
header: ToolBar {
background:Rectangle
{
implicitHeight: 40
color: "beige"
}
RowLayout {
anchors.fill: parent
ToolButton {
text: qsTr("‹")
onClicked: stackView.pop()
}
Label {
text: "App Paolo"
elide: Label.ElideRight
horizontalAlignment: Qt.AlignHCenter
verticalAlignment: Qt.AlignVCenter
Layout.fillWidth: true
}
ToolButton {
text: qsTr("⋮")
onClicked: {
// menu.x = 30//(window.width - menu.width) / 1
//menu.y = 10
menu.open()
}
}
}
}
ListModel {
id: pageModel
ListElement {
title: "Riparazioni"
page: "Riparazioni.qml"
}
ListElement {
title: "Magazzino"
page: "Magazzino.qml"
}
}
StackView {
id: stackView
anchors.fill: parent
// Implements back key navigation
focus: true
// //Keys.onReleased: if (event.key === Qt.Key_Back && stackView.depth > 1) {
// stackView.pop();
// event.accepted = true;
// }
initialItem: Item {
width: parent.width
height: parent.height
ListView {
model: pageModel
anchors.fill: parent
delegate: AndroidDelegate {
text: title
onClicked: stackView.push(Qt.resolvedUrl(page))
}
}
}
}
Loader{
id : ld
}
StackView {
id: stack
anchors.fill: parent
}
Menu {
id: menu
MenuItem{
text: "Settings"
onClicked: {
// stackView.push("Settings.qml")
}
}
}
}