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:
locationComboBox
->setFont
(QFont("DejaVu Sans",
10,
QFont::Bold));
locationComboBox->addItem("This option is Bold:");
locationComboBox
->setFont
(QFont("DejaVu Sans",
9,
QFont::Normal));
locationComboBox->setFont(QFont("DejaVu Sans", 10, QFont::Bold));
locationComboBox->addItem("This option is Bold:");
locationComboBox->setFont(QFont("DejaVu Sans", 9, QFont::Normal));
To copy to clipboard, switch view to plain text mode
Thanks.
Bookmarks