Note: how to decouple the button the response of the logic function and the coupling between the window class (my window class background don't want to write any code),
CodePudding user response:
Your class to do the custom button class, is to inherit the original press button class then events in a custom button written line, window custom button, directly in line