I'm creating a GUI in QtDesigner and did some styling on the window itself made everything have font size 30pt and QScrollBars width and height (vertical and horizontal respectively) 90px. For simplicity i'll continue with vertical scrollbars, but translate everything to horizontal ones too. Now the buttons at the ends of the scrollbar are slim as they heights remained the same (and i presume the slider itself has minimum height lower than 90px). Styling those buttons did not yield any results. Could someone please tell me, what should i do to make those buttons (and the minimum slider height) bigger, so that it could be used on a 1024x600, 7" touch monitor? Qt version 5.11.3, and using python, PySide2. Thanks
Asked
Active
Viewed 325 times
1 Answers
0
To set the width of all vertical scrollbars of widget w and its children:
w.setStyleSheet('QScrollBar:vertical {width: 40px;}')
for the height of horizontal ones:
w.setStyleSheet('QScrollBar:horizotal {height: 40px;}')

Giovanni Angeli
- 64
- 4