[Qt-qml] ListView.positionViewAtIndex(index, ListView:End) does not work as expected
martin.jones at nokia.com
martin.jones at nokia.com
Wed May 25 02:51:05 CEST 2011
Hi,
Sounds like a bug. Please submit a bug report at http://bugreports.qt.nokia.com with an example we can use to reproduce the problem.
Br,
Martin.
From: qt-qml-bounces+martin.jones=nokia.com at qt.nokia.com [mailto:qt-qml-bounces+martin.jones=nokia.com at qt.nokia.com] On Behalf Of ext Vijaya Bhaskar Reddy
Sent: Tuesday, 24 May 2011 2:25 PM
To: Qt-qml at qt.nokia.com
Subject: [Qt-qml] ListView.positionViewAtIndex(index, ListView:End) does not work as expected
Hi All,
I have the below code...
ListModel { id: opModel }
ListView {
id: operations
width: parent.width
anchors { bottom: resultRect.top, top: headerAndExit.bottom }
model: opModel
delegate:listViewRow
onCountChanged: { positionViewAtIndex(count-1,ListView.End) }
}
Some where below in the code, I append a new item to the model when I get particular signal from C++ code :
opModel.append({"operation":basicCalc.opData}) // this gets called well.
The list scrolls to show the item inserted. But for every alternative inserts, ListView goes blank, and If I touch on the ListView, items displayed again.
Any help is appreciated.
Thanks,
_Reddy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20110525/7cfd407b/attachment-0001.html
More information about the Qt-qml
mailing list