I've already set the textFormat
to Qt::RichText
, but the link is still un-clickable.
QMessageBox msgBox(this);
msgBox.setWindowTitle(QApplication::applicationName()
+ " $VER " + QApplication::applicationVersion());
msgBox.setTextFormat(Qt::RichText); //this is what makes the links clickable
msgBox.setText("<a href=\"google.com\">Google</a>");
msgBox.setStandardButtons(QMessageBox::Ok);
msgBox.exec();
Any solutions? It's confirmed not working with Qt 4.7.