'How to resize the scrollbar from a QTextEdit in PyQt?

I'm using a QTextEdit widget in my python GUI - designed with PyQt4. The vertical scrollbar appears as soon as the text doesn't fit anymore in the QTextEdit widget. But the scrollbar itself is so small (high dpi screen). How can I enlarge the scrollbar, such that clicking and dragging it gets more user friendly?

enter image description here

Thank you so much.



Solution 1:[1]

I was able to get this to work using:

QScrollBar::handle:vertical { min-height : 16px; }

I was trying to display over 40000 lines in a QTextEdit and the scroll bar kept getting too small to even see. I struggled to get this working for hours, but this was the solution for me. I hope this helps.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 K.Mulier