Advertisement
Guest User

Untitled

a guest
Jan 18th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. QMessageBox* msgBox = new QMessageBox( this );
  2. //msgBox->setAttribute( Qt::WA_DeleteOnClose ); //makes sure the msgbox is deleted automatically when closed
  3. msgBox->setStandardButtons( QMessageBox::Ok );
  4. msgBox->setWindowTitle( tr("Warning") );
  5. msgBox->setText( tr("The operation may take a long time. Please wait.") );
  6.  
  7. msgBox->setModal( false ); // if you want it non-modal
  8. msgBox->open( this, SLOT(msgBoxClosed(QAbstractButton*)) );
  9.  
  10. //QSharedPointer<QDir> dir = QSharedPointer<QDir>::create(lastDir_);
  11. QApplication::setOverrideCursor(QCursor(Qt::WaitCursor));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement