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

Property frameCount of QQuickAnimatedImage is neither CONSTANT nor NOTIFYable

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.9.3
    • 5.9.0
    • Quick: Other
    • None
    • bb02a577f

    Description

      Properties of QtQuick item classes need to be either CONSTANT or NOTIFYable otherwise they at least generate runtime warnings when using in bindings or might even not work at all.

       

      QQuickAnimatedImage::frameCount is neither CONSTANT nor NOTIFYable

      https://code.woboq.org/qt5/qtdeclarative/src/quick/items/qquickanimatedimage_p.h.html#72

       

      Since the value of that property depends on the image source it clearly should be NOTIFYable.

       

      This omission even breaks the example for AnimatedImage in its own documentation.

      See also QTBUG-25046 which got closed without fixing the actual underlying problem of the property.

       

      Attachments

        For Gerrit Dashboard: QTBUG-62913
        # Subject Branch Project Status CR V

        Activity

          People

            pal.toth Tóth Pál
            krake Kevin Krammer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes