Is there anyway that i can change the border around the selected cell in qtablewidget.. Whenever i select i find a dotted line border around the selected cell. I want to make this border to disappear.. Is there a way???
Printable View
Is there anyway that i can change the border around the selected cell in qtablewidget.. Whenever i select i find a dotted line border around the selected cell. I want to make this border to disappear.. Is there a way???
Try using stylesheets :
Code:
qApp->setStyleSheet ( qApp->styleSheet() +" QTableWidget::item:focus { background-color:transparent; color:blue; border: 0px }" );
This will change the aspect of ALL QTableWidget on your appliaction. If you want to change only one, you can set it's stylesheet. ( a method of QWidget ).
HI,
I have a tablewidget in my application in which first column contains checkboxes and other contains information.
Now I want to set the background color of the selected row as transparent and a solid border around the row.
and when I check the check box in a particular row It will have background color as default and no border around the row.
Can you please help me?
Thanks in advance.
Sanket
Hi All,
I want to select the cell dynamically and change its border color to red. I tried the above method, but it didnt work. am I missing something?