Qt, QWidget, QTabWidget, QTabBar: How to move the text to the bottom of icon? -


by default, text on right-side of tab icon...
should move text bottom of ?
, there option icon/text alignment ??

(i'm designing gui base on qt creator designer.
i'm trying qt stylesheet can't. have not yet modify code generated qt designer.)

thank much!

a tricky way:

since can set qtoolbutton icon above text, create group of qtoolbuttons, listed horizontally or vertically, each button needs checkable. add them qbuttongroup.

then hide tabbar of qtabwidget(out of parent widget or under toolbuttons), place tabwidget under listed toolbuttons.

finally, connect qbuttongroup buttonclicked signal tabwidget's setcurrentindex signal.

notice, when add button qbuttongroup, have assign id 0 manually.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -