OS: Ubuntu 8.10 x64

Qt version: Qt 4.4.3.


I create a QComboBox object and I add some entries. How can I make some of them appear in Bold, while others appear as normal?


I tried the following approach, but it doesn't work:

Qt Code:
  1. locationComboBox->setFont(QFont("DejaVu Sans", 10, QFont::Bold));
  2. locationComboBox->addItem("This option is Bold:");
  3. locationComboBox->setFont(QFont("DejaVu Sans", 9, QFont::Normal));
To copy to clipboard, switch view to plain text mode 

Thanks.