[Qt-interest] how custom QScrollArea's QScrollBar with images?

James Yan james.pizza at gmail.com
Tue Apr 12 09:35:14 CEST 2011


Hey All,

I can custom QSlider with: (thanks Qt, that's really handy.)	

pSldZoom->setStyleSheet("QSlider::groove:horizontal{image: url(:/images/qs_groove.png);} QSlider::handle:horizontal{image: url(:/images/qs_handle.png);}");

now, I want to custom my QScrollArea's QScrollBar with the same method, any hint?

I've try:
verticalScrollBar()->setStyleSheet("QScrollBar::groove:vertical{image: url(:/images/qs_groove.png);} QScrollBar::handle:vertical{image: url(:/images/qs_handle.png);}");
nothing happens.


thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110412/7aa67578/attachment.html 


More information about the Qt-interest-old mailing list