yes, you can. but at first you have to add an item, because if you don't do this your programm will crash if you use this code:
ui.tableWidgetTextureLibrary->horizontalHeaderItem(0)->setText("Whatever");
ui.tableWidgetTextureLibrary->horizontalHeaderItem(0)->setText("Whatever");
To copy to clipboard, switch view to plain text mode
so, if you already created an item like this
ui.
tableWidgetTextureLibrary->setTorizontalHeaderItem
(0,
new QTableWidgetItem("Whatever"));
ui.tableWidgetTextureLibrary->setTorizontalHeaderItem(0, new QTableWidgetItem("Whatever"));
To copy to clipboard, switch view to plain text mode
then in you code you can use horizontalHeaderItem for changing column name, because horizontalHeaderItem will return valid pointer.
Bookmarks