I have a QSpinBox in the cell of a QTableWidget. When I right-click in the QSpinBox I popup a context menu associated with the table. The problem is the QSpinBox also signals editingFinished whenever it's right-clicked, even if successive right-clicks occur without leaving the spin box. Is there a way to disable this behavior such that I only see editingFinished when enter is pressed or the spin box loses focus?