[Qt-interest] how custom QScrollArea's QScrollBar with images?
Atlant Schmidt
aschmidt at dekaresearch.com
Tue Apr 12 13:08:48 CEST 2011
James:
Here are the things we style with regard to scroll bars.
I *THINK* they're all effective ;-).
* QAbstractScrollArea
* QAbstractScrollArea
* QScrollBar:vertical
* QScrollBar::add-line:vertical
* QScrollBar::sub-line:pressed
* QScrollBar::add-line:pressed
* QScrollBar::add-line:disabled
* QScrollBar::add-page:vertical
* QScrollBar::handle:disabled
* QScrollBar::handle:vertical
* QScrollBar::up-arrow
* QScrollBar::down-arrow
* QScrollBar::sub-line:vertical
* QScrollBar::sub-line:disabled
* QScrollBar::sub-page:vertical
Atlant
________________________________
From: qt-interest-bounces+aschmidt=dekaresearch.com at qt.nokia.com [mailto:qt-interest-bounces+aschmidt=dekaresearch.com at qt.nokia.com] On Behalf Of James Yan
Sent: Tuesday, April 12, 2011 03:35
To: qt-interest at qt.nokia.com
Subject: [Qt-interest] how custom QScrollArea's QScrollBar with images?
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.
Click here<https://www.mailcontrol.com/sr/aTAyMeKCtOnTndxI!oX7UlnwUb8+3gKcqKsSd3FdTnCWUKe6rlXhZbS2kIynifDPOGKIfXr6a00wyNC8RpgWkw==> to report this email as spam.
________________________________
This e-mail and the information, including any attachments, it contains are intended to be a confidential communication only to the person or entity to whom it is addressed and may contain information that is privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the sender and destroy the original message.
Thank you.
Please consider the environment before printing this email.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110412/5698f0e1/attachment.html
More information about the Qt-interest-old
mailing list