开发者

Qt: Transparent scrollbar

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜