Sorry, I assumed QTableWidgetItem was a QWidget, I see it is not...
I didn't do much with tables in Qt, so I am not 100% sure, but it looks to me you will have to subclass QTableWidgetItem if you want this on item level or the QTableWidget if you want this on table level.
But maybe some other users here who are more experienced with QTableWidget and friends can help more.
Bookmarks