Skip to content

Commit 3b81dd5

Browse files
committedFeb 19, 2016
gui: workaround for Qt failing to embed applets in hidden and detached QDockWidgets
1 parent 5f5427f commit 3b81dd5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎artiq/frontend/artiq_gui.py

+5
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,11 @@ def main():
144144
main_window.addDockWidget(QtCore.Qt.LeftDockWidgetArea, d_explorer)
145145

146146
# load/initialize state
147+
if os.name == "nt":
148+
# HACK: show the main window before creating applets.
149+
# Otherwise, the windows of those applets that are in detached
150+
# QDockWidgets fail to be embedded.
151+
main_window.show()
147152
smgr.load()
148153
smgr.start()
149154
atexit_register_coroutine(smgr.stop)

0 commit comments

Comments
 (0)
Please sign in to comment.