Hello.
I have a litte question about QTableWidget:
I want to change header label text orientation to vertical.
Can you tell me how to do it?
I have tried different ways, I have asked a google, but I still dont know to solve this problem. ;-(
Hello.
I have a litte question about QTableWidget:
I want to change header label text orientation to vertical.
Can you tell me how to do it?
I have tried different ways, I have asked a google, but I still dont know to solve this problem. ;-(
Create your own QTableWidgetItem by subclassing, swap the size hint and rotate the painter before drawing by calling the base class function. Set this item then as a header item.
I dont understand..
First: i create item:
Next: i set text:Qt Code:
To copy to clipboard, switch view to plain text mode
And what now?
Ups, sorry I was confused with graphics items. Please forget my last post. See http://qt-apps.org/content/show.php/...content=103154 for ideas to solve your problem.
I still dont know how to do it..
I use QtCreator and:
Qt Code:
ui->tableWidget->setColumnCount(8); ui->tableWidget->setRowCount(8);To copy to clipboard, switch view to plain text mode
after
Qt Code:
QStringList poz; ... ui->tableWidget->setHorizontalHeaderLabels(poz);To copy to clipboard, switch view to plain text mode
What write between?
Anyone can help me? ;- (
wrong response
Last edited by genomega; 2nd May 2010 at 20:19. Reason: updated contents
Bookmarks