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

Drill Down Example uses qgraphicsitem_cast<> in an invalid way

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3: Somewhat important P3: Somewhat important
    • 5.15.0 Beta2
    • 4.6.0, 5.15
    • Examples and Demos
    • None
    • 3
    • a2446c0eede445eb40905487b1ba7c689aa8baef
    • DaVinci sprint 5

      Since ImageItem does not reimplement QGraphicsPixmapItem::type () it returns the same type like QGraphicsPixmapItem, so you cannot reliable use qgraphicsitem_cast<ImageItem *>(item) (just qgraphicsitem_cast<QGraphicsPixmapItem *>(item)).

      See also documentation of QGraphicsItem::type () http://doc.trolltech.com/4.6/qgraphicsitem.html#type

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

            paulwicking Paul Wicking
            jpetersen Jan Arne Petersen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes