pyqt qtabwidget horizontal tab and horizontal text in QtDesigner

前端 未结 4 519
半阙折子戏
半阙折子戏 2020-12-21 12:37

i am having problem to change text alignment using pyqt4 desginer i have made tabs horizontal by aligning west but the text in that goes north to south that looks bad i want

4条回答
  •  Happy的楠姐
    2020-12-21 13:36

    Better way for looks and usability:

    At the Qt Designer>

    1. Use QToolBox at left side and QTabWidget at right.
    2. Connect both with signal (currentChanged(int) - setCurrentIndex(int)).
    3. Hide QTabWidget header with following css.

    QTabBar::tab {height: 0px;}

    Here an Example:

提交回复
热议问题