Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove checkbox from QErrorMessage

Tags:

checkbox

qt

writing in QT and QErrorMessage by default has checkbox saying:

Show this message again

Is there some way to remove this checkbox, so user won't be able to turn off this message?

like image 450
Uko Avatar asked Feb 03 '23 07:02

Uko


1 Answers

Instead of using QErrorMessage use QMessageBox::critical or QMessageBox::warning.

If you need to customise the message box further you can create an instance of QMessageBox and then exec it.

like image 192
Silas Parker Avatar answered Feb 05 '23 17:02

Silas Parker