PDA

View Full Version : formatted text in QTreeWidgetItem



swiety
30th October 2007, 13:36
How can i display formatted text in QTreeWidgetItem?

jpn
30th October 2007, 17:26
QTreeWidgetItem offers:

QTreeWidgetItem::setFont()
QTreeWidgetItem::setForeground()
QTreeWidgetItem::setTextAlignment()

In case you need rich text, take a look at this recent thread (http://www.qtcentre.org/forum/f-qt-programming-2/t-rich-text-in-tree-widget-9845.html).