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

James Yan james.pizza at gmail.com
Wed May 4 20:04:50 CEST 2011


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110505/a0cfd98c/attachment.html 


More information about the Qt-interest-old mailing list