Hi guys!
I'm using Qt 4.1.1 and have come across an unsolvable (at least to me) problem:
Normally text in sections of horizontal header view are drawn horizontally.
The question is - how to make that text drawn vertically, i.e. rotated by 90 degree? (see the attachment picture)
I've tried this:
But code above does not help. Have any idea?Qt Code:
{ .... public: void paint(...){ doMyCustomPaint(); } }; ... // usage tableView->setModel(myModel); myCustomDelegate = new MyCustomDelegate(this); tableView->getHorizontalHeader()->setItemDelegate(myCustomDelegate);To copy to clipboard, switch view to plain text mode
Bookmarks