[solved] QTableWidgetItem set StyleSheet
I have a QTableWidget, if there is some opportunity to set the StyleSheet for a specific item in the table, for example, item(3,2) ???
In advance I thank
thanks, but this unit only color, and how to impose a completely separate style to a cell …
- item(3,2).setStyleSheet("border:1px solid grey; border-bottom-left-radius: 5px;border-bottom-right-radius: 5px;")
need to do a completely different style from the cell …
This is not possible by styling.
It can only be achieved by creating a delegate which does customized painting. But take care, if you change borders and margins, the size of the cell might change so you have to adopt the rest of the row / rolumn.