[Qt-interest] "white block" on QScrollBar's background
Anton Chernov
mechernov at gmail.com
Thu May 5 09:13:10 CEST 2011
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/8a274a8c/attachment.html
More information about the Qt-interest-old
mailing list