PDA

View Full Version : how to hide slider bar on the QScrollBar



yxmaomao
28th May 2008, 07:31
Hi all,

Could you give me some thoughts how to hide the slider on the QScrollbar?

Thanks

jpn
28th May 2008, 07:56
Why would you do so? How about disabling the scroll bar?

lyuts
28th May 2008, 10:58
Hi all,

Could you give me some thoughts how to hide the slider on the QScrollbar?

Thanks

QScrollBar has setVisible(bool) method...

yxmaomao
29th May 2008, 00:04
setVisisble means hide all QScroll bar, but for me I just want to hide the slider bar on the QScroll Bar

aamer4yu
29th May 2008, 10:48
ans then how will u catch the changes in the scrollbar ?

yxmaomao
30th May 2008, 00:15
yes, I can catch changes
but my problem is how to hide the slider on the scroll bar

jpn
30th May 2008, 08:00
What is the use case? Why would you like to have a scroll bar with no handle?

yxmaomao
30th May 2008, 09:02
that is my special usercase
Now I have done this, my method is to make the scroll bar's handle image with the same backgound
just a trick, looks like handle disappeared -:)