I've stumbled onto another peculiar problem with QPushButton on OS X (and PyQt 4.0.1). I have a dialog with only two buttons, "Next" and "Cancel". In my code I make "Next" default, by calling setDefault(True) on it. However, if I run the app as the root user, with "sudo", the "Cancel" button is default! This does not happen with the regular user ("Next" is default) ... Any ideas as to what is going on here?
<br><br>Thanks,<br>Arve Knudsen<br>