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

QGraphicsSvgItem->shape() returns the bounding box and ignores transparent areas (QGraphicsPixmapItem->shape() knows about transparent areas)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P3: Somewhat important
    • None
    • 4.2.0, 4.2.1, 4.2.2, 4.2.3, 4.3.0, 4.3.1, 4.3.2, 4.3.3, 4.3.4, 4.3.5, 4.4.0, 4.4.1, 4.4.2, 4.4.3, 4.5.0, 4.5.1, 4.5.2, 4.5.3, 4.6.0, 4.6.1, 4.6.2, 4.6.3, 4.7.0
    • None

    Description

      Having no proper collosion detection for QGraphicsSvgItems is a real pitty thinking about smartphones and their different display resolutions.
      QGraphicsPixmapItem works different to QGraphicsSvgItem.

      http://lists.trolltech.com/qt-interest/2007-01/thread00539-0.html:
      Because QGraphicsSvgItem's collision detection requires boolean painter path
      operations, and Qt 4.2 does not support that, we cannot provide automatic
      collision detection for items beyond their bounding rect. You can write
      your own shape() implementation and return a QPainterPath that resembles
      your item's shape to work around it.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            jhgoebbert J.H. Göbbert
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes