PDA

View Full Version : How to set the border for QTableWidgetItem located inside the QTableWidget



kapoorsudhish
8th December 2009, 13:11
Hi,
I am using a QTableWidget and accessing the table details using the QTableWidgetItem class. I want to highlight the border of the selected area (like in excel sheet) for single or multiple selections. How this can can be achieved ???


thanks,
sudhish kapoor.

spirit
8th December 2009, 13:55
you can use two options:
1. write a delegate
2. use QSS, there is an example in Qt Assistant how to customize QTableView (http://doc.trolltech.com/4.5/stylesheet-examples.html#customizing-qtableview).