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

Incorrect mouse cursor when enabling QWidget while being on a native window

    XMLWordPrintable

Details

    • macOS

    Description

      When a qwidget that has cursor set; and it is enabled while the mouse is on a native widget, the mouse cursor immediately changes to the cursor set for the qwidget, eventhough the cursor is not on top of the it.

      Attached is a simple repo for the issue. 

      I have set the cursor to Qt::SizeHorCursor for the QLabel on the right. The QPushButton on the left is set as NativeWindow. The application is set with Qt::AA_DontCreateNativeWidgetSiblings

       

      To repro the issue in the test app:

      1) Click on the button, the cursor will immediately change to SizeHorCursor

      Attachments

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

        Activity

          People

            srutledg Shawn Rutledge
            nanthiran2005 sivan nanthiran
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes