allow to undock docked viewers
@@ -444,6 +444,10 @@ class MultipleViewerWidget(QSplitter):
if __name__ == "__main__":
+ from qtpy import QtWidgets, QtCore
+ QtWidgets.QApplication.setAttribute(QtCore.Qt.AA_ShareOpenGLContexts)
+ # above two lines are needed to allow to undock the widget with
+ # additional viewers
view = napari.Viewer()
dock_widget = MultipleViewerWidget(view)
cross = CrossWidget(view)
