diff --git a/Project.toml b/Project.toml index d23ef92..8808a58 100644 --- a/Project.toml +++ b/Project.toml @@ -19,7 +19,7 @@ CxxWrap = "0.15.1" MacroTools = "0.5" Observables = "0.5" Requires = "1.0" -jlqml_jll = "0.6.0" +jlqml_jll = "0.6.1" julia = "1.6" [extras] diff --git a/src/QML.jl b/src/QML.jl index 4d66cec..28bf3b1 100644 --- a/src/QML.jl +++ b/src/QML.jl @@ -75,7 +75,6 @@ end function load_qml(qmlfilename, engine) ctx = root_context(CxxRef(engine)) if !load_into_engine(engine, QString(qmlfilename)) - cleanup() error("Failed to load QML file ", qmlfilename) end return engine @@ -98,6 +97,7 @@ function loadqml(qmlfilename; kwargs...) return load_qml(qmlfilename, qml_engine) catch cleanup() + QML.process_events() rethrow() end end