You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a MultiPlotter, the BackGroundPlotter.app_window property of the children does not contain the application window but a child (or more precise a grandchild)-window of the application window.
It seems the application consists of a Mainwindow that is parent to a QWidget that is parent to the multiple plotters. So each BackgroundPlotter in the MultiPlotter has its own MainWindow which are nested in the application.
I would have expected that:
Either BackGroundPlotter.app_window always returns the application window independent whether it is nested in a MultiPlotter
or MultiPlotter would have a MultiPlotter.app_window that contains the reference to the global application window.
Maybe adding a qt_window in the BackGroundplotter which in the MultiplotterCase contains the child-widgets, and for the single-case also contains the app-window and setting the correct app_window could resolve it - however that would be a breaking change if someone already relies on the app_window to return the child-widgets.
BackGroundPlotter
plotter.app_window: <pyvistaqt.window.MainWindow(0x600000325d40) at 0x10a4c7900>
done
MultiPlotter
plotter.app_window: <pyvistaqt.window.MainWindow(0x600000336b80) at 0x12f4eef00>
<PySide6.QtWidgets.QWidget(0x600000336820) at 0x12f4ec6c0>
<pyvistaqt.window.MainWindow(0x6000003370c0) at 0x12f48bf00>
done
The text was updated successfully, but these errors were encountered:
In a
MultiPlotter
, theBackGroundPlotter.app_window
property of the children does not contain the application window but a child (or more precise a grandchild)-window of the application window.It seems the application consists of a
Mainwindow
that is parent to aQWidget
that is parent to the multiple plotters. So eachBackgroundPlotter
in theMultiPlotter
has its ownMainWindow
which are nested in the application.I would have expected that:
BackGroundPlotter.app_window
always returns the application window independent whether it is nested in aMultiPlotter
MultiPlotter
would have aMultiPlotter.app_window
that contains the reference to the global application window.Maybe adding a
qt_window
in the BackGroundplotter which in the MultiplotterCase contains the child-widgets, and for the single-case also contains the app-window and setting the correctapp_window
could resolve it - however that would be a breaking change if someone already relies on theapp_window
to return the child-widgets.Some code to highlight the issue:
Which outputs:
The text was updated successfully, but these errors were encountered: