[Qt-interest] CSS background color of QScrollArea's QScrollBar

James Yan james.pizza at gmail.com
Tue Apr 12 22:44:01 CEST 2011


Hey All,

  I try to change background color of scrollbar's "groove" and handle, and make add-line/sub-line invisible with following CSS:

QScrollBar:vertical          {background: rgba(35,35,35,255)};
QScrollBar::handle:vertical  {background: rgba(60,60,60,255)};
QScrollBar::add-line:vertical{height: 0px;                  };
QScrollBar::sub-line:vertical{height: 0px;                  };

Yes, it's the vertical scrollbar of QScrollArea. 
Everything fine, but the background color of scrollbar's "groove", it's not the solid color of rgba(35,35,35,255), but with white grid on it.
What's wrong with it? may i just simply set background color into rgba(35,35,35,255)?

thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110413/1f4de105/attachment.html 


More information about the Qt-interest-old mailing list