gui: autoscroll MDI area

This commit is contained in:
Sebastien Bourdeauducq 2016-02-16 00:19:50 +01:00
parent 53076615f8
commit 87574193d4

View File

@ -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,