View Full Version : How to owner draw the scrollbar in Qt?
tszzp
5th November 2009, 08:15
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.
Remenic
5th November 2009, 13:05
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().
tszzp
6th November 2009, 02:56
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.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.