开发者

Qt: Transparent scrollbar

开发者 https://www.devze.com 2023-04-04 12:38 出处:网络
I\'d like to make a background of a scrollbar of QListVi开发者_如何转开发ew transparent. It should be painted over the content. Something like this. Is it possible?Sure. Subclass it, override the pain

I'd like to make a background of a scrollbar of QListVi开发者_如何转开发ew transparent. It should be painted over the content. Something like this. Is it possible?


Sure. Subclass it, override the paint event, and read this.


GUI style on screenshot is QML i think


I ended up with this hack. I just created a new vertical scroll bar, placed it onto viewport and connected it with the original scroll bar. Then I just hidden the original scrollbar :)

You can see the result: http://i.stack.imgur.com/wrQOQ.png

0

精彩评论

暂无评论...
验证码 换一张
取 消