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

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


Still NO. 
OK, come on, i think it's a deeper issue, and be no business with the style sheet text.

On May 5, 2011, at 5:15 PM, Anton Chernov wrote:

> 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/4a4ff8bd/attachment.html 


More information about the Qt-interest-old mailing list