PDA

View Full Version : How to change QTabWidget's tab positon?



yangyunzhao
19th August 2009, 02:55
In my program,I use QTabWidget. This unit has its own QTabBar.
If I change the QTabBar's positon,It will work as:(By change its "tabpositon" from "North" to "West")

From this:
http://www.qtcentre.org/forum/attachment.php?attachmentid=3586&stc=1&d=1250646658
To this:
http://www.qtcentre.org/forum/attachment.php?attachmentid=3587&stc=1&d=1250646658

But I do not want this style.
In the second, I will it performance like:

Tab1
Tab2

instead of
http://www.qtcentre.org/forum/attachment.php?attachmentid=3588&stc=1&d=1250646808


I want the text stay at a horizontal line instead of a vertical line.

Could you give me some helps?Thans a lot!!

vieraci
19th August 2009, 14:56
Use removeTab(), your page is not deleted, then insertTab().