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

QGraphicsVideoItem does not override QGraphicsItem::type()

XMLWordPrintable

    • 64fff601a78887e321cd7d486974fe7dfe065d6b (qt/qtmultimedia/5.15)

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes