QMessageBox disabled the close button when you setStandardButtons(NoButton)!
I have a QMessageBox, when I did the
Code:
myBox.setStandardButtons(NoButton);
myBox.exec();
the dialog's close button(on the upright corner of the dialog) will turn to be disable.
How to enable the close button?
Re: QMessageBox disabled the close button when you setStandardButtons(NoButton)!
Re: QMessageBox disabled the close button when you setStandardButtons(NoButton)!
Use:->
If you dont want anything on the widget then simply define one QWidget with empty widgets.