[Qt-interest] "white block" on QScrollBar's background

James Yan james.pizza at gmail.com
Thu May 5 09:40:40 CEST 2011


doest help :(

On May 5, 2011, at 3:13 PM, Anton Chernov wrote:

> try
> 
> QScrollBar:vertical{ background: black solid; }
> 
> 2011/5/4 James Yan <james.pizza at gmail.com>
> Hey, All.
>   I try to set background of a scrollbar(belong to a scrollarea) to pure black, so i work with setStyleSheet like following:
> 
> ===
> scrollArea->verticalScrollBar()->setStyleSheet("QScrollBar:vertical{background: black; }");
> ===
> 
> but, the result always shows up with white block(looks 1X1 pixel for each) on the pure black, make the background looks like chess board. What's wrong with it? any suggestion? 
> 
> btw,i use Qt on Mac.
> 
> thanks.
> 
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110505/4a035fc0/attachment.html 


More information about the Qt-interest-old mailing list