Details
-
Suggestion
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
4.7.4
-
None
-
Qt 4.7.4
Qt Creator 2.3.0Based on Qt 4.7.4 (32 bit)
Built on Aug 25 2011 at 15:26:28
From revision 0c9dc89d0b
Description
Steps:
1. create QML Application from template
2. Add a ListModel
3. Add a PathView into it and set the path, preferredHighlightBegin and preferredHighlightEnd as follows
preferredHighlightBegin: 0.5 preferredHighlightEnd: 0.5 delegate: Rectangle { width: 100 height: 100 color: (PathView.isCurrentItem?"red":(index%2==0?"black":"yellow")) border.color: (index%2==0?"orange":"blue") border.width: 2 Text { text: myString anchors.centerIn: parent color: (index%2==0?"white":"black") } z: (PathView.isCurrentItem?1:0) } path: Path { id: path startX: -100+pathView.width/2 startY: pathView.height/2 PathLine { id: line x: 100+pathView.width/2 y: pathView.height/2 } }
4. Compile and run the application. In the application,
5. Add 3 items to the PathView's model.
-> The item insertion is not animated, and there is no way to animate them! [Not OK]
6. Remove items
-> The item removing is not animated, and there is no way to animate them! [Not OK]
See the attachment PathViewBugReport.zip of QTBUG-21315 for example code.
Attachments
Issue Links
- is replaced by
-
QTBUG-9649 Allow animation of PathView items on insertion/removal
-
- Open
-