Solved QTableWidget row selection highlight colour light blue
-
Qt newbie here
I have a QTableWidget and I'm trying to change the row highlight selection colour from the default dark blue to the light blue that you see on every table widget in the QtCreator. It must be really obvious but I cannot seem to get the colour right;
I can't find any setting on the form designer to do this so I tried using
setStyleSheet("selection-background-color: rgb(195, 225, 225);");
But it comes out as an ugly light green colour.
How can I get the row selection highlight colour to be like the image below?
Thanks
-
@E106JZ said in QTableWidget row selection highlight colour light blue:
How can I get the row selection highlight colour to be like the image below?
Don't use the Windows Style - you can't change it there. -
@Christian-Ehrlicher Sorry what do you mean by that? Can you explain more please
-
Sorry, did not read correctly.
But it comes out as an ugly light green colour.
But you specified this color: https://duckduckgo.com/?t=ffsb&q=color+c3e1e1&ia=answer
-
Hi and welcome to the forums
Seems to work fine?
try with selection-background-color: rgb(204, 232, 255);
-
@mrjj THanks this worked