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

QApplication::restoreOverrideCursor does not restore cursor since 5.10

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated 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)

       

      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

       

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes