Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

QTabWidget tabs on the vertical, but text in horizontal

I'm trying to make an app in C++ Qt with a sidebar like this one:

Finder's sidebar

But when making QTabWidget's orientation to West, it makes the text vertical. How to have the text on the left, but horizontally-aligned? Ps: I don't need icons. Thanks in advance.

like image 222
Délisson Junio Avatar asked Jan 13 '13 01:01

Délisson Junio


1 Answers

You can use QListWidget to show the "tabs" (with some mods to make it look like you want) and QStackedWidget to handle switching between pages like normal tab widget does.

like image 151
Eugene Avatar answered Oct 19 '22 23:10

Eugene