I have a QMessageBox, when I did the
Qt Code:
  1. QMessageBox myBox = new QMessageBox();
  2. myBox.setStandardButtons(NoButton);
  3. myBox.exec();
To copy to clipboard, switch view to plain text mode 
the dialog's close button(on the upright corner of the dialog) will turn to be disable.
How to enable the close button?