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

Be able to set boundaries for the items of a graphicsview

    XMLWordPrintable

Details

    Description

      QGraphicsItems can be moved by the user anywhere in an QGraphicsScene. Is is often useful to limit the area where the items can be (e.g. in the sceneRect, in the parent rect, etc).

      For those use cases, it would be nice to have a method like QGraphicsItem::setPositionBoundingRect(const QRectF &posBoundingRect) to define the area (in parent coordinate) where the QGraphicsItem::boudingRect() is contained.

      Attachments

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

        Activity

          People

            monsen Marius Bugge Monsen
            poulain Benjamin Poulain (closed Nokia identity) (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes