PDA

View Full Version : Question on QAbstractItemModel vs. QTableView



lni
25th April 2007, 23:16
Hi,

Can I feed QTableView with an HTML format string from the QAbstractItemModel?

For instance, if I return
<html> data1 <br> <hr> <br> data2 </html> from QAbstractItemModel::data(...), how to let the QTableView display like the following?

data1
-------
data2

jpn
26th April 2007, 07:29
I'm afraid QItemDelegate doesn't support rich text. See this thread (http://www.qtcentre.org/forum/f-qt-programming-2/t-qstandarditem-subpart-of-the-text-as-bold-5548.html).