Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-interest Archive, July 2007
Alignment of an icon in the QTreeWidgetItem


Message 1 in thread

Hello,

how can I change the alignment of a column in a QTreeWidget? To be more
concrete, I need all the icons in the tree to be centered. The only
function I could found is setTextAlignment():

item->setIcon(columnNumber, pixmap);
item->setTextAlignment(columnNumber, Qt::AlignHCenter);

but this doesn't work for the icons. Any advice?
Thanks in advance,


Alexander Semke

--
 [ signature omitted ]