I'm trying to create a non-modal QMessageBox:
QMessageBox msgBox( pParentWindow );
msgBox.setWindowModality(Qt::WindowModal);
msgBox.setIcon( QMessageBox::Warning );
msgBox.setText( headerMsg.c_str() );
QAbstractButton *btnCancel = msgBox.addButton( "Cancel", QMessageBox::RejectRole );
msgBox.exec();
(this is a simplified example). The problem is, this is still modal: I can move another (non-parent) dialog, but I can't close it. I also tried:
msgBox.setModal(false);
but the msgBox still prevents me from closing the other dialog. What am I missing? Perhaps the problem is with exec()?