From af8268d8e604c0e14f215780a996aa2db447cfa2 Mon Sep 17 00:00:00 2001 From: Yichao Yu Date: Mon, 26 Oct 2026 14:57:25 -0400 Subject: [PATCH] Fix PyQt6 support The AllEvents flag is scoped under the type name in PyQt6 --- src/gui.jl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gui.jl b/src/gui.jl index 9ed04316..1b3e981c 100644 --- a/src/gui.jl +++ b/src/gui.jl @@ -143,7 +143,11 @@ end function qt_eventloop(QtCore::PyObject, sec::Real=50e-3) fixqtpath() instance = QtCore."QCoreApplication"."instance" - AllEvents = QtCore."QEventLoop"."AllEvents" + AllEvents = try + QtCore."QEventLoop"."AllEvents" + catch + QtCore."QEventLoop"."ProcessEventsFlag"."AllEvents" + end processEvents = QtCore."QCoreApplication"."processEvents" pop!(ENV, "QT_PLUGIN_PATH", "") # clean up environment maxtime = PyObject(50)