View Full Version : TreeWidget change text at top of the colum
ruben.rodrigues
15th July 2010, 14:06
Hi all!
How can I change the text at the top of a treewidget? At the moment I have 1 2 3 4 5 but I want words!
thanks
Lykurg
15th July 2010, 14:09
Hi, see
QTreeWidget::setHeaderLabel()
QTreeWidget::setHeaderLabels()
QTreeWidget::setHeaderItem()
and the documentation is your friend!
ruben.rodrigues
15th July 2010, 14:23
Hi, see
QTreeWidget::setHeaderLabel()
QTreeWidget::setHeaderLabels()
QTreeWidget::setHeaderItem()
and the documentation is your friend!
Thank you!
Just for the record
QStringList HeaderLabels;
HeaderLabels << "Message Text" << "Message ID" << "Message Type" << "Task" << "Task ID";
ui.treeWidget->setHeaderLabels(HeaderLabels);
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.