PDA

View Full Version : Reg - Font setting QListBox



lawrence
23rd December 2006, 19:55
I listed online and offline members in QListBox.
I would like to display online members as bold and offline members as normal.
Before Insert into listbox I called the function setFont() based on the members status. But List box displays only bold or normal.

Is it possible to display one line as bold and next one as normal in QListbox?

Anybody knows reply me.

jacek
23rd December 2006, 20:07
Just subclass QListBoxItem and make it draw your items using different fonts.