Hey,

I want to display a widget as disabled (setEnabled(false)) with its cursor set to Qt::WaitCursor. Disabling the widget, however, always display the widget with a normal Qt::ArrowCursor. How do I obtain a disabled widget with a Qt::WaitCursor. Code that reproduces the problem is shown below.

Best regards,

Mads

Qt Code:
  1. #include <QWidget>
  2. #include <QApplication>
  3. #include <QCursor>
  4.  
  5. int main(int argc, char *argv[])
  6. {
  7. QApplication app(argc, argv);
  8.  
  9. QWidget *widget = new QWidget;
  10. widget->show();
  11.  
  12. QCursor cursor(Qt::WaitCursor);
  13. widget->setCursor(cursor);
  14. widget->setDisabled(true);
  15.  
  16. return app.exec();
  17. }
To copy to clipboard, switch view to plain text mode