jokober
jokober

Reputation: 854

QToolButton: click when enter(return) pressed

I had to change a QPushButton to a QToolButton. I used the setDefault() and setautoDefault() options for the QPushButton to click the button when enter(return) pressed but now I cant find a way to do the same with the QToolButton.

Is there any advice how I can solve this?

Upvotes: 1

Views: 1138

Answers (1)

jdi
jdi

Reputation: 92559

If you are for some reason forced to use a QToolButton instead of QPushButton, then those methods are no longer available to you. You would need to manually hook up signals from the other widgets to trigger a click on your button.

Upvotes: 1

Related Questions