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

Setting ItemSendsScenePositionChanges does not notify GraphicsItemChange::ItemScenePositionHasChanged

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.7.0
    • 4.7.0
    • Widgets: GraphicsView
    • None
    • d9c5d0698109c39547ee23a883b88a48a4f9f8e1

    Description

      Calling

      setFlag(QGraphicsItem::ItemSendsScenePositionChanges, true);

      will neither cause

      qDebug() << "flags: " << flags();

      to report that the flag is set, nor getting actual scene position changes notified in the QGraphicsView::itemChange virtual function. The attahced example use a QDeclarative item exposed to QML with this flag set - but without the desired side-effect.

      Attachments

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

        Activity

          People

            menard Alexis Menard (closed Nokia identity) (Inactive)
            hhartz Henrik Hartz (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes