Use:->
Qt Code:
  1. myBox.setStandardButtons(QMessageBox::Close);
To copy to clipboard, switch view to plain text mode 

If you dont want anything on the widget then simply define one QWidget with empty widgets.