Questions Regarding Default Button
General and Desktop
2
Posts
2
Posters
451
Views
1
Watching
-
wrote on 12 Mar 2015, 13:48 last edited by
I am implementing a function in my API that uses setDefault() to, first, change an existing default button by using setDefault(false). Then I use the setDefault(true) command on another button to set that button as the default. Is unsetting the original default button necessary, or does setting another button as the default automatically unset the previous default button?
-
wrote on 12 Mar 2015, 13:56 last edited by
This is from QT documentatio:
In a dialog, only one push button at a time can be the default button. This button is then displayed with an additional frame (depending on the GUI style).I guess you dont have to set the old one to default: false. 99% sure.
1/2