How do I place the QScrollBar on the content of the QScrollArea?
-
30-06-2021 - |
Frage
I want to make a scrollbar that fades in and out depending on usage. I subclassed QScrollBar and got the look that I want. The problem is that the scrollbar is placed next to the content. How do I instead make it go on top of the content?
Lösung
I created a new QScrollbar which I connected to the original via signals and then used widget->setParent
and then widget->setGeometry()
to paint it on top
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow