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

QML Video item is sensitive to property assignment order

    XMLWordPrintable

Details

    • 0d4572595698502e04f491bfea3e16bb1851b645

    Description

      This does not work:

      Video {
          source: "file:..."
          playing: true
      }
      

      whereas this does work:

      Video {
          source: "file:..."
          Component.onCompleted: playing = true // force to happen after source is set
      }
      

      The class should work regardless of what order the properties are set. At a minimum, the class could use QDeclarativeParserStatus to at least work correctly on initial settings.

      Similarly, some changes during notifiers don't work - neither of these achieve looping:

      onPlayingChanged: { if (!playing) play() }
      
      onStatusChanged: { if (status == Video.EndOfMedia) { play() } }
      

      Attachments

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

        Activity

          People

            jmcphers Justin McPherson (closed Nokia identity) (Inactive)
            wallison Warwick Allison (closed Nokia identity) (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