Qt Code:
  1. void dlg::LongFunc()
  2. {
  3. this->setCursor(Qt::WaitCursor);
  4. QApplication::processEvents();
  5. ...
  6. this->setCursor(Qt::ArrowCursor);
  7. }
To copy to clipboard, switch view to plain text mode