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

QGraphicsVideoItem does not override QGraphicsItem::type()

    XMLWordPrintable

Details

    • 64fff601a78887e321cd7d486974fe7dfe065d6b (qt/qtmultimedia/5.15)

    Description

      QGraphicsVideoItem does not override the virtual function QGraphicsItem::type(). This prevents qgraphicsitem_cast(..) from distinguishing QGraphicsVideoItem instances from any other QGraphicsItem-derived object that does not override type() or has a type() function that returns 65536 (UserType).

      This can be a problem in a number of cases, but is particularly problematic for PyQt: http://www.riverbankcomputing.com/pipermail/pyqt/2015-January/035302.html

      Edit: This can't happen before Qt 6.0 as it breaks binary compatibility.

      Attachments

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

        Activity

          People

            valentyn.doroshchuk Valentyn Doroshchuk
            ehvatum Erik Hvatum
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes