C++ (Qt)QErrorMessage *errorMsg = new QErrorMessage(this);errorMsg->findChild<QCheckBox *>()->hide();errorMsg->showMessage("Error!");