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

Windows: setOverrideCursor does not have any effect when set a startup and mouse is initially outside window

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P4: Low
    • 5.11.2
    • 5.10.1, 5.11.1
    • GUI: Window management
    • None
    • Windows
    • 46fc3d3729df9e81e42f87c46907d6eb81a0c669 (qtbase.5.11, 1.8,2018,.5.11.2)

    Description

      To reproduce:

      • setOverrideCursor for QApplication
      • move mouse outside window
      • move mouse inside window

      It works properly on Qt 5.10

      On Qt 5.10.1 - it resets custom cursor

      On Qt 5.11.1 - it keeps frame border cursor (Windows)

      #include <QMainWindow>
      #include <QApplication>
      int main(int argc, char *argv[]) { 
        QApplication a(argc, argv); 
        QMainWindow w;
        a.setOverrideCursor(Qt::CrossCursor); 
        w.show(); 
      return a.exec();
      }
      

       

      Attachments

        Issue Links

          Activity

            People

              kleint Friedemann Kleint
              slava_yartsev Viacheslav Yartsev
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: