How to mark text available in a particular cell as underlined in QTableView?
-
Hi,
I wanted to mark text available in a cell of a QTableView as underlined but I don't know how to do that. I tried setFont but that is for whole table but my requirement is to mark only for some particular cells not whole table.
I googled but did not get much on it.
Any hint or suggestion will help a lot. -
You can set some render hints from the model:
"QAbstractItemModel:data":http://developer.qt.nokia.com/doc/qt-4.8/qabstractitemmodel.html#data and use the font role