View Full Version : Table view->model->set data
tulsi
21st April 2009, 07:32
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?
spirit
21st April 2009, 07:37
create you own delegate and reimplement QItemDelegate::drawDisplay.
tulsi
21st April 2009, 07:42
hi sprit,
could u be a bit more elaborative?
aamer4yu
21st April 2009, 08:36
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
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.