Adjust QSplitter style

This looks much better when using PySide6 6.7.2.
This commit is contained in:
LuK1337 2024-07-15 18:05:22 +02:00
parent 9450c9899c
commit 49a402e93e
No known key found for this signature in database
1 changed files with 4 additions and 0 deletions

View File

@ -1510,6 +1510,8 @@ class MainWindow(QtWidgets.QMainWindow):
if isMacOS(): window.userlistLayout.setContentsMargins(3, 0, 3, 0)
window.listSplit = QtWidgets.QSplitter(Qt.Vertical, self)
window.listSplit.setHandleWidth(6)
window.listSplit.setStyle(QtWidgets.QStyleFactory.create("fusion"))
window.listSplit.addWidget(window.userlistFrame)
window.listLayout.addWidget(window.listSplit)
window.roomsCombobox = QtWidgets.QComboBox(self)
@ -1544,8 +1546,10 @@ class MainWindow(QtWidgets.QMainWindow):
window.topSplit.addWidget(window.outputFrame)
window.topSplit.addWidget(window.listFrame)
window.topSplit.setHandleWidth(6)
window.topSplit.setStretchFactor(0, 4)
window.topSplit.setStretchFactor(1, 5)
window.topSplit.setStyle(QtWidgets.QStyleFactory.create("fusion"))
window.mainLayout.addWidget(window.topSplit)
window.topSplit.setSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding)