You need to enable the TextSelectableByMouse interaction TextSelectableByMouse :
QMessageBox mb(QMessageBox::NoIcon, "New message", "A lot of text", QMessageBox::Ok, this); mb.setTextInteractionFlags(Qt::TextSelectableByMouse); int dialogResult = mb.exec();
Alexander Sorokin
source share