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

QApplication::restoreOverrideCursor does not restore cursor since 5.10

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.10.0
    • QPA: Windows
    • None
    • Detected on Qt 5.10, Windows 7 64, mingw 5.3.

      No problem on Qt 5.10 (Linux) and Qt 5.9.3 (Windows and Linux)

    Description

       

      Example:

      Main window override cursor and execute dialog

      void MainWindow::on_pushButton_clicked()
      {
         QApplication::setOverrideCursor(Qt::WaitCursor);
         TestDialog d;
         d.exec();
      }
      

      Dialog  restore cursor  

      void TestDialog::setVisible(bool visible)
      { 
         QDialog::setVisible(visible);
         if (visible)
             QApplication::restoreOverrideCursor();
      }
      

      In this particular case (restoreOverrideCursor after QDialog::setVisible) dialog still have WaitCursor

       

      Attachments

        Issue Links

          Activity

            People

              kleint Friedemann Kleint
              n_r_w n_r_w
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: