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
Post a Comment