1
0

qt wizard: set focus on next_button

This commit is contained in:
ThomasV
2024-03-01 16:42:11 +01:00
parent 33b1946202
commit c6802adbae

View File

@@ -126,6 +126,7 @@ class QEAbstractWizard(QDialog, MessageBoxMixin):
self.load_next_component(viewstate.view, viewstate.wizard_data, viewstate.params)
# TODO: re-test if needed on macOS
self.refresh_gui() # Need for QT on MacOSX. Lame.
self.next_button.setFocus() # setDefault() is not enough
def refresh_gui(self):
# For some reason, to refresh the GUI this needs to be called twice