How to make background of cell widget inside QTableWidget not selectable?

Viewed 548

The answer https://stackoverflow.com/a/24909605/3125006 shows how to add a QPushButton into a QTableWidget cell. This works perfectly.

But then the background area around the PushButton is selectable. (Background turns into selection color when clicked). How can I prevent that?

enter image description here

1 Answers
Related