It should remain visible because you allocate it on the heap, but what if you do:
Qt Code:
  1. QMessageBox msg(QMessageBox::NoIcon,Title,msg,QMessageBox::Ok,Parent);
  2. msg.exec();
To copy to clipboard, switch view to plain text mode