The error has nothing to do with your subclass. You simply forgot the parent parameter for the QAction constructor.
The example subclassed from a QWidget because the result is supposed to be a keypad with multiple QPushButtons. Not a single QPushButton. (The keypad IS-A widget. It's not a pushbutton.)





Reply With Quote
Bookmarks