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

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

      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();
      }
      

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

            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

              Created:
              Updated:

                There are no open Gerrit changes