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

QGraphicsItem::itemChange should inform about boundingRect changes

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • 4.8.2
    • Widgets: GraphicsView
    • None
    • All

      There is not a clear way to get know if QGraphicsItem's boundingRect changes.

      Of course it is possible to reimplement boundingRect() which saves the value from QGraphicsItem::boundingRect() and checks if the QRectF value have been changed, but there should be more clear way to get this information.

      One solution would be to add new constant to GraphicsItemChange and call QGraphicsItem::itemChange() with it when QGraphicsItem's boundingRect is updated.

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

            Unassigned Unassigned
            qtcomsupport Qt Support
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes