QSplitter becoming undistinguishable between QWidget and QTabWidget

前端 未结 7 1124
庸人自扰
庸人自扰 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条回答
  •  猫巷女王i
    2021-02-04 07:10

    Thanks to Merula's answer... I tried this and now my splitters are visible and look very nice without looking obtrusive. This code is for Python using PyQt or PySide.

    app = QtGui.QApplication(sys.argv)
    app.setStyle("Plastique")   # set style (using this style shows splitters! :)
    

提交回复
热议问题