How to make the title bold?

Posted by Solitaire on Stack Overflow See other posts from Stack Overflow or by Solitaire
Published on 2010-04-07T12:30:15Z Indexed on 2010/04/07 12:53 UTC
Read the original article Hit count: 234

Filed under:
|
|
|

Hi all,

In Qmessagebox how can I make the title text bold? Here is the sample code, which I am using to disply a messagebox

int ret = QMessageBox::warning(this, tr("My Application"),
          tr("document has been modified.\n"
          "Do you want to save your changes?"),
          QMessageBox::Save | QMessageBox::Discard
          | QMessageBox::Cancel,
          QMessageBox::Save);

I just want “tr("My Application")” to be bold, and rest to be in normal font. How can I do that? By default I am getting the normal font for both title and descriptive text.

Thanks.

© Stack Overflow or respective owner

Related posts about qt

Related posts about qt4