[solved] QTableWidgetItem set StyleSheet
Good day
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
5 replies
thanks, but this unit only color, and how to impose a completely separate style to a cell …something like
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.
You must log in to post a reply. Not a member yet? Register here!




