问题 I would like to open a window when I click on a QSpinBox . The problem is that there is no such signal "clicked" for this widget. Does someone has an idea how to do that? 回答1: A QSpinBox is just a QLineEdit with two buttons, input validation and event handling. It doesn't have clicked signal because it's supposed to handle the mouse even itself. The problem is that even making a custom widget derived from QSpinBox won't be enough since it doesn't receive the mouse events itself, they are