Qt - Skinning a QScrollBar with Paint Event?
I’m trying to skin a QScrollBar by reimplementing the paintEvent() function. However, I don’t know how to get information on the position of the buttons and slider for accurate and detailed rendering. The QScrollBar seems to only supply information on the position of the slider, and doesn’t provide information on the buttons (up/down or left/right). I can’t hardcode it because the button positions are different on each Operating systems and I would prefer Qt to manage the buttons while I simply render them.
I was looking into a QStyle, but it also only seems to provide information on the slider and not the buttons.
Are there any examples/tutorials on how to properly skin a QScrollBar? Or if there any way to get information on the position/state of the ScrollBar buttons?
Any help is much appreciated!