Re: customizing QScrollbar
The answer is: don't subclass but use style sheets. :)
Re: customizing QScrollbar
Ok, but I want to do it hard way!!!!!
Re: customizing QScrollbar
Quote:
Originally Posted by
MarkoSan
Ok, but I want to do it hard way!!!!!
Well, good luck. Take a look at QScrollBar::paintEvent() implementation. It's all done with styles. You might be able to change the background brush with palettes but for custom arrow controls you'll need a custom style. At least if you want to do it the right way (tm).
Re: customizing QScrollbar
Quote:
Originally Posted by
jpn
The answer is: don't subclass but use style sheets. :)
I used style sheet, but it does not look very good, and also examples in qt documentation don't seem enough. http://doc.trolltech.com/4.4/stylesh...ing-qscrollbar
Do you have any good examples of style sheet applied on QScroolBar?
Thanks.
Re: customizing QScrollbar
Do it using a QStyle, it is hard enough.
Re: customizing QScrollbar
Quote:
Originally Posted by
axeljaeger
Do it using a QStyle, it is hard enough.
Do you have any suggestion for changing the appearance of QScrollBar?
Re: customizing QScrollbar
Reimplement drawComplexControl and watch out for CC_ScrollBar