Search code examples
c++qtcoding-styleqmessagebox

Set specific style to a certain QMessageBox


How to set a specific style to a certain QMessageBox in Qt. Particularly, I would like to invoke a message box which is written below by setting a font size and color for the text "Well done!!!".

QMessageBox::information(this, "Done", "Well done!!!");

Solution

  • I have formated the text of the QMessageBox with HTML code. Sorry for the question. And thanks for answers.