I would like to display a multi coloured string in a table view. "setData" gives me the option of coloring the entite string.
What could be alternative in this situation?
I would like to display a multi coloured string in a table view. "setData" gives me the option of coloring the entite string.
What could be alternative in this situation?
create you own delegate and reimplement QItemDelegate::drawDisplay.
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
hi sprit,
could u be a bit more elaborative?
You will need to use your own delegates for such drawing.
Have a look at QItemDelegate and QStyledItemDelegate.
You will need to set the delegate on your view. QAbstractItemView::setItemDelegate
Bookmarks