[Qt-interest] "white block" on QScrollBar's background
Anton Chernov
mechernov at gmail.com
Thu May 5 11:15:25 CEST 2011
QScrollBar { background-color: black; border-image: none; } ?
2011/5/5 James Yan <james.pizza at gmail.com>
> 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/aa81b70e/attachment.html
More information about the Qt-interest-old
mailing list