PDA

View Full Version : QAbstractItemModel bold items



SiLiZiUMM
21st April 2008, 18:43
Hello,

I am running some tests using QAbstractItemModel. In my data model, I have 2 strings that I would like to concatenate in my tree view. But, I would like that the second string is showing up in bold.

Example:


[+] This is the root node (with some other information here when available)

This is a child node


Should I implement a delegate in order to do this?

wysota
21st April 2008, 19:48
Yes, that's probably the best if not the only way to go.