| Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date | |
| All threads index page 1 | |
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 ]