How to disable changing the default button in Qt using tab navigation

In Qt 4, by default, when a dialog is clicked, it defaults to the default button that the button was entered into. This makes tabs look a little ugly and distracting as additional redraws occur during tab navigation that distract from the user's focus point.

Is there a way to disable this Qt functionality and leave the default button unmodified using tab navigation?

+2


a source to share


1 answer


The autoDefault property of the QPushButton is responsible for this behavior. By default, this value is true.



Setting it to false for all corresponding buttons will prevent them from becoming the default on focus.

+3


a source







All Articles