QPushButton Enter/Return
Unsolved
General and Desktop
-
Hello,
i have a dialog with 4 buttons on qdialogbuttonbox. I want that the user can switch the focus via tab and can active the buttons with enter/return (similar to space).
It works if i call setDefault(true) for every button, but i read in some post that only 1 buttons should be the "Default-Button".Is there a anthor way to make this work? Sure, i can install a eventfilter, but it sounds strange for me that there is not an easy way similar to setDefault(true).
-
Hi
Since enter has other roles, like for dialogs, they made key for press it
"spacebar".
So you can activate with keyboard.