Unsolved Select of a QTableWidgetItem with background image
-
Hi,
I search a solution for my problem (like everybody :p )
I have multiple QTableWidgetItem with a background images, when I select a QTableWidgetItem, it's complety blue, beurk...
I tryed to change the styleSheet but, my original background disappears...
I would like just apply a little grey with transparency.
Any idea ?
Thanks.
-
Hi,
You can implement a custom QStyledItemDelegate and re-implement the paint method to do what you want.
-
Hi,
have you an example ?
It seems to be difficult... -
As this email suggest make it draw everything as if not selected then you can draw the selection rectangle yourself on top of that with the colours you want.