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

setCursor for QGraphicsView ignored

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3: Somewhat important P3: Somewhat important
    • 4.6.0
    • 4.5.0
    • Widgets: GraphicsView
    • None

      When using QGraphicsView::setCursor() after a QGraphicsItem child has had QGraphicsItem::setCurosr() called, all QGraphicsView::setCursor events will be ignored.

      Please see example attached:

      If the mouse has never been moved inside the area occupied by the
      QGraphicsRectItem after the application start everything works as
      expected.

      Middle click (and hold button) anywhere inside the QGraphicsView
      after moving the mouse pointer inside and then outside the area
      of the single QGraphicsRectItem in the attached sample app.

      Expected to see:
      Change of cursor shape.

      Got instead:
      No change of cursor shape.

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

            bjnilsen Bjørn Erik Nilsen
            janichol Andy Nichols
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes