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

setCursor on QGraphicsView don't work when add QWidget on the QGraphicsScene

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4: Low
    • None
    • 5.15.0
    • Widgets: GraphicsView
    • None
    • Windows 7 64 bit, msvc 2008, reproducible on Qt463 and Qt471
    • All

    Description

      To reproduce the bug, start the application, put your mouse cursor on the QGraphicsView without touching the QPushButton. With key 0, 1 and 2 you can change your cursor type.
      Now pass over the push button and get back to the QGraphicsView. When you change the cursor type, it has no visual feedback but the property "cursor" of the widget has changed.
      With the key R you can reset the QGraphicsView viewport and it's works again, until you pass over the QWidget. The problem is present with a software or opengl viewport and only when there is a QWidget in the QGraphicsScene.

      The attachment contain a basic .pro project which reproduce this problem.

      Attachments

        Issue Links

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

          Activity

            People

              bibr Andreas Aardal Hanssen
              mathieupujol Mathieu Pujol
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes