I want to customize the scrollbar's control in Qt, I want to change the user interface of two pushbuttons and thumb for scrollbar. Can you tell me how to do it?or where I can find the sample code for it? thanks.
I want to customize the scrollbar's control in Qt, I want to change the user interface of two pushbuttons and thumb for scrollbar. Can you tell me how to do it?or where I can find the sample code for it? thanks.
First, see if using Qt Style Sheets provides what you want. If not, then another way to achieve what you want is to subclass a QStyle and setting that as the widget's style using QWidget::setStyle().
Thank you for your reply. I will try it. I want to know if I subclass the QWindowsStyle then use it in a widget, if it can work correct in linux platform. If I use the scrollbar not embed it in the other widget, which function can decide the thumb size? thanks.
Last edited by tszzp; 6th November 2009 at 02:15.
Bookmarks