How to Create list detail screen ?
-
Hey,
I have a listview and i have created a detail screen for each list Item, But I am not able to getting the data from listview to detail screen.
Why? What should i do to get data from per list ITEM to his detail screen? -
Hi @shwt.saxena
How do you call Details screen? Can you post some code ? -
@p3c0 yes I have defined some states and adding click event on image
Image { id: img_live width: 50 height: 50 source: (bgimage.state == "DEFAULT")?"images/noimage.jpg":liveview anchors.horizontalCenter: parent.horizontalCenter anchors.verticalCenter: parent.verticalCenter MouseArea{ anchors.fill: parent onClicked :{ listview.state ="GoToDetailView" } } }
-
@shwt.saxena Please format your code before pasting and use ``` (3 backticks) for posting code blocks.
The code that you posted doesn't show how details screen in invoked. Is it is a Component or a separate QML ? Please post those details.