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

PieSlice should be able to contain Animation

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 6.9.1
    • Graphs: 2D
    • None

    Description

      PieSlice cannot have Animations inside.

      PieSlice {
        NumberAnimation {} // not allowed
      }

      This is inconvenient to users.

      To animate properties of PieSlice, one has to put Animation outside of PieSlice.

      PieSeries {
        NumberAnimation { // has to be here
          target: slice1
          property: "explodeDistanceFactor"
          from: 0; to: 0.2
          duration: 500
          running: true
          loops: -1
        }
        PieSlice {
          id: slice1
          value: 1
          exploded: true
          // ideally, a user wants to write Animations for slice1 here
        }
        PieSlice {
          id: slice2
          value: 2
        }
      }

      Attachments

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

        Activity

          People

            kagro Kaj Grönholm
            mikio mikio hirai
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes