Hi everybody!
I’m new in Felgo, and I’m trying to do a simple thing : Display a list and open a page when an item of the list is clicked.
Here is my code, in one page :
import Felgo 3.0
import QtQuick 2.0
App {
Component { id: pageComponent; Page { } }
NavigationStack {
ListPage {
title: qsTr("Test")
id: testListPage
activeFocusOnTab: false
listView.emptyText.text: qsTr("Empty list")
model: [
{text: "Text 1", detailText: "Detail text 1", icon: IconType.android},
{text: "Text 2", detailText: "Detail text 2", icon: IconType.android},
{text: "Text 3", detailText: "Detail text 3", icon: IconType.android},
{text: "Text 4", detailText: "Detail text 4", icon: IconType.android},
{text: "Text 5", detailText: "Detail text 5", icon: IconType.android}
]
onItemSelected: {
navigationStack.push(pageComponent, { title: item.text, rightBarItem: null })
}
delegate: SimpleRow { }
}
}
}
The list is displayed well but Nothing happen when I click on an item. And when I try to debug it, I never break into the onItemSelected function.
I might miss Something but I really Don’t know what…
Thanks in advance!
Alexis.