Why if I use setDetailedText for QMessageBox then WindowCloseButton disabled ? How to enable it ? I tried this, but not work..

Qt Code:
  1. msg.setDetailedText("Cape Deh...");
  2. msg.setWindowFlags(msg.windowFlags() | Qt::WindowCloseButtonHint);
To copy to clipboard, switch view to plain text mode