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

setCursor for QGraphicsView ignored

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes