QTableView styleSheet problem
-
Hi,
I'm trying to customize my QTableWidget with style steets so:
@
QTableView {gridline-color: qlineargradient(spread:pad, x1:0, y1:0.5, x2:1, y2:0.5, stop:0 rgba(0, 0, 0, 255), stop:1 rgba(255, 255, 255, 255));}";
@But when I set it gridline-color is just black. What could be the problem?
[edit: added missing coding tags @ SGaist]
-
Hi and welcome to devnet,
AFAIK, the grid color must be a RGB value
-
Thanks. Ok. Is there any other way to do this grid?
-
Do you mean write the grid as a gradient ?
-
Yes. I need to make something like this:
!http://www.picshare.ru/uploads/140812/76e0w59960.jpg!
My idea was to do it so:
@QTableView {gridline-color: qlineargradient(spread:pad, x1:0, y1:0.5, x2:1, y2:0.5, stop:0 rgba(0, 0, 0, 0), stop: 0.3 rgba(0, 0, 0, 255), stop: 0.7 rgba(0, 0, 0, 255), stop:1 rgba(0, 0, 0, 0));}"@ -
Then I fear you'll have to draw it yourself