How do you set a part of the text in bold in a QListWidgetItem ?
Hi,
I would like some specific parts of my QListWidgetItems to be in bold.
Could anyone provide me with a simple example ?
Re: How do you set a part of the text in bold in a QListWidgetItem ?
You will need to use delegates and draw the text yourself.
See QItemDelegate::drawDisplay
Also you can use QSyntaxHighlighter to draw colored text for specific parts.
Re: How do you set a part of the text in bold in a QListWidgetItem ?
OK but how do I link the delegate with the highlighter ?