QSplitter becoming undistinguishable between QWidget and QTabWidget

前端 未结 7 1109
庸人自扰
庸人自扰 2021-02-04 06:30

I am puting a QWidget and a QTabWidget next to each other in one horisontal splitter. And the splitter loses it\'s shape, you can know that there is a splitter only by hovering

7条回答
  •  滥情空心
    2021-02-04 07:25

    You can subclass QSplitter and override it's protected virtual QSplitterHandle * QSplitter::createHandle() to return anything that makes you happy.

    For example, from that overloaded method you can return subclass of QSplitterHandle with custom drawing.

提交回复
热议问题