PDA

View Full Version : How to block The rest of the GUI like QMessageBox



oswalidos
15th June 2012, 12:40
Hello,

I want to take the same functionality of QmessageBox, I have a Qwidget that contain a button, when i click on the button it open another QWidget, the new opened widget must block the main widget.

I think it's common after some hour of googling i still can't find out how to do that,

Thanks in advance.

wysota
15th June 2012, 12:45
Make that new widget a QDialog and call QDialog::exec() instead of show().