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

QWidget::setCursor does not work on macOS for widgets with tooltip or popup flag

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.3.2, 5.15.1
    • None
    • OS X 10.10.1
      Qt 5.3.2
    • macOS

    Description

      QWidget::setCursor does not work in OS X.

      Sample:

       
      int main( int argc, char **argv)
      {
          QApplication a(argc, argv);
      
          QWidget w;
          w.setWindowFlags(Qt::Window | Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint | Qt::ToolTip);
          w.setFocusPolicy(Qt::WheelFocus);
          w.setMouseTracking(true);
          w.setCursor(Qt::CrossCursor); // Cursor is not changed
          w.setFixedSize(200, 200);
          w.move(200, 200);
          w.show();
      
          return a.exec();
      }
      

      Attachments

        Issue Links

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

          Activity

            People

              vestbo Tor Arne Vestbø
              sazonov Dmitry Sazonov
              Veli-Pekka Heinonen Veli-Pekka Heinonen
              Votes:
              5 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes