QTabWidget如何设置tab头的宽度

setStyleSheet(QTabBar::tab{width:宽度});

右击控件,在样式表编辑框中写入就行

你可能感兴趣的:(QTabWidget如何设置tab头的宽度)