QScrollBar within a QMessageBox
Hi,
I would like to use a QMessageBox in order to display the content of a txt file.
I am wondering if there is a possibility to activate an horizontal and/or a vertical scrollbar if the text from the file exceeds certain limits ?
This is my current code:
Code:
void
MainWindow::credits() {
QFile file(":/credits.txt");
return;
this
);
credits.exec();
file.close();
}
Re: QScrollBar within a QMessageBox
I guess detailedText property of QMessageBox will help you to perform what you want..?