Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-21318

QML PathView element insert and remove should allow animation

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 4.7.4
    • None
    • Qt 4.7.4
      Qt Creator 2.3.0

      Based 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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              martjone Martin Jones (closed Nokia identity) (Inactive)
              alhannin Aleksi Hänninen (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes