PDA

View Full Version : stylesheet for QTableView [solved]



Cremers
11th February 2014, 12:18
Hi,
I am trying to use a tableview with custom icons for the selection indicator. I use these stylesheets below and they work, however the icon is displayed too small. I have set iconSize for the table and other icons I use elsewhere in the same table respond to that but not the selection indicator. How can I increase the size of that indicator?
The icon is actually quite bigger than displayed in the table.
Thanks.

"QTableView::indicator:unchecked { image: url(:/img/unchecked.png);}"
"QTableView::indicator:checked { image: url(:/img/checked.png);}"));

Edit: Solved it: "QTableView::indicator { width:66px; height:66px; }"
Simple really I should have looked better.