Look, I can't get any clearer than I have been. I have a widget, which is a title bar - not that it matter. There is text written on it - left to right. Now when the dock widget's header orientation is set to vertical, you need to draw the title widget in a vertical orientation. That is, the title widget's size has to change, and the text has to be written on it's side. I've mentioned all of this in the above posts. And your abovementioned solution was too vague to work with - there is no "setOrientation" function in a widget. Here's a picture for you:
-----------------------------------------------
| Some text |
|________________________________|
-----------------------------------------------
| Some text |
|________________________________|
To copy to clipboard, switch view to plain text mode
needs to become this:
--------
| |
| |
| |
| t |
| x |
| e |
| T |
| |
| |
| |
--------
--------
| |
| |
| |
| t |
| x |
| e |
| T |
| |
| |
| |
--------
To copy to clipboard, switch view to plain text mode
In the above pic the text is wrong though, that needs to be rotated by 270 degrees.
/edit: Ok, the forum is messing up my pretty ASCII art And that is just the titlebar BTW, that is also in a widget.
If you can't follow me, just make a quick mockup of a QDockWidget in a QMainWindow in designer, and connect a button so that you can call the setFeatures function so that you can switch on the i { white-space: pre-wrap; } QDockWidget:ockWidgetVerticalTitleBar feature. Make sure the widget is docked on either the left or the right and you will see what I am trying to do.
Bookmarks