PyQt5 QSpinBox Locking/Unlocking in Context Menu

I've added a locking checkbox in a spinbox's context menu that disables the spinbox using self.setDisabled(True). Is there any way I can open the context menu while the spinbox is disabled, to access the locking checkbox ?

Read more here:

Content Attribution

This content was originally published by on98 at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: