Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
[Solved] Remove OK button from QMessageBox?
CAD_coding last edited by
I am creating a QMessageBox as below:
@QMessageBox *msg = new QMessageBox();
By default it is showing the OK button.
I want to remove that button.
In fact I do not want any button.
What is the function to do this?
I have tried removing it by using buttons() to get a list of buttons & then removing them but this does not work.
Did you try