From 87574193d4f889158bac524c51557bf0f6b69bbe Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 16 Feb 2016 00:19:50 +0100 Subject: [PATCH] gui: autoscroll MDI area --- artiq/frontend/artiq_gui.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/artiq/frontend/artiq_gui.py b/artiq/frontend/artiq_gui.py index fa2c1a25d..dddff112b 100755 --- a/artiq/frontend/artiq_gui.py +++ b/artiq/frontend/artiq_gui.py @@ -93,7 +93,10 @@ def main(): status_bar = QtWidgets.QStatusBar() status_bar.showMessage("Connected to {}".format(args.server)) main_window.setStatusBar(status_bar) - main_window.setCentralWidget(QtWidgets.QMdiArea()) + mdi_area = QtWidgets.QMdiArea() + mdi_area.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAsNeeded) + mdi_area.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAsNeeded) + main_window.setCentralWidget(mdi_area) # create UI components expmgr = experiments.ExperimentManager(main_window,