From 3b81dd5adc5c277ceefd18d802a7871350b72408 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Fri, 19 Feb 2016 18:13:25 +0100 Subject: [PATCH] gui: workaround for Qt failing to embed applets in hidden and detached QDockWidgets --- artiq/frontend/artiq_gui.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/artiq/frontend/artiq_gui.py b/artiq/frontend/artiq_gui.py index dddff112b..056644944 100755 --- a/artiq/frontend/artiq_gui.py +++ b/artiq/frontend/artiq_gui.py @@ -144,6 +144,11 @@ def main(): main_window.addDockWidget(QtCore.Qt.LeftDockWidgetArea, d_explorer) # load/initialize state + if os.name == "nt": + # HACK: show the main window before creating applets. + # Otherwise, the windows of those applets that are in detached + # QDockWidgets fail to be embedded. + main_window.show() smgr.load() smgr.start() atexit_register_coroutine(smgr.stop)