We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09cdf92 commit ae6ea2eCopy full SHA for ae6ea2e
guidata/qthelpers.py
@@ -720,6 +720,10 @@ def exec_dialog(dlg: QW.QDialog) -> int:
720
int: Dialog exit code
721
"""
722
if execenv.unattended:
723
+ # Important: process all pending Qt events before scheduling dialog closure.
724
+ # This avoids side-effects between tests (timers, widgets) and ensures
725
+ # clean dialog lifecycle in non-interactive automated test environments.
726
+ QW.QApplication.processEvents()
727
QC.QTimer.singleShot(
728
execenv.delay,
729
lambda: close_dialog_and_quit(dlg, screenshot=execenv.screenshot),
0 commit comments