[Qt-interest] What is Qt's default style for QScrollBar

Santhosh Y santhosh at softjin.com
Wed Jun 16 11:00:22 CEST 2010


Hi,

For the QScrollArea in my layout I am using following style sheet.
* setStyleSheet ("background-color:transparent")*

As a side effect of the above style sheet, the scroolbar which appears 
when there are more
items to display is also taking QScrollArea parents stylesheet.

My requirement is that, QScrollArea should take parent stylesheet where 
as QScrollBar dont.

So in QScrollArea class I would like to set the stylesheet to QScrollBar 
as follows:
*    QScrollBar* vScrollBar = QAbstractScrollArea::verticalScrollBar ();
     vScrollBar->setStyleSheet("background-color:blue;"); // Need to 
know Qt-default style

*My query is that, what Qt-by default sets to the QScrollBar, so that I 
can duplicate here as it is.
Since the above style is not looking good and it is not consistent with 
other QScrollBar styles of my application

-- 
----------------------------------------------------
Y Santhosh Kumar -
Senior Software Engineer,
SoftJin Technologies Pvt Ltd,
www.softjin.com
----------------------------------------------------



Business Disclaimer
____________________________________________________________
This e-mail message and any files transmitted with it are intended solely
for  the use  of the  individual or entity  to which they  are  addressed. It
may  contain confidential,  proprietary or legally  privileged  information.
If  you  are  not  the  intended recipient please be advised that you have
received  this  message in error and any use is strictly prohibited. Please
immediately  delete it  and all copies of it from your system, destroy any
hard  copies  of  it and  notify  the  sender  by return mail. You must not,
directly or indirectly, use,  disclose,  distribute, print, or copy any part of
this message if you are not the intended recipient.
___________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100616/b9599501/attachment.html 


More information about the Qt-interest-old mailing list