Qt 6.11 is out! See what's new in the release
blog
QTreeWidget column name
General and Desktop
2
Posts
1
Posters
10.5k
Views
1
Watching
-
How does one set the column name of a QTreeWidget. I have search many documents and forums without any results.
Help is appreciated.
-
fixed it..
heres the code if any other newbies are having the same problem.@
QTreeWidget* TreeWidget = new QTreeWidget(this);...
QStringList ColumnNames;
ColumnNames << "Column 1" << "Column 2";TreeWidget->SetHeaderLabels(ColumnNames);
@