How to make a QPushButton pressable for enter key?
I want to make my app laptop friendly. I can tab to everywhere, but if I tab to a QPushButton I can't press it with Enter , only with space . What's the problem? How to make it pressable for Enter ? totymedli tl;dr In the Qt Creator's UI view, select the button you want to make pressable for Enter . In the right side at the Property Editor scroll down to the blue part titled QPushButton . Check the checkbox by autoDefault or default . Most of the cases the main different between autoDefault and default is how the button will be rendered. But there are cases where it can cause unexpected things