[Qt-qml] ListView.positionViewAtIndex(index, ListView:End) does not work as expected

Vijaya Bhaskar Reddy thisisbhaskar at gmail.com
Tue May 24 06:24:47 CEST 2011


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/20110524/abca8986/attachment.html 


More information about the Qt-qml mailing list