pyqtgraph/pyqtgraph/flowchart
Adam Strzelecki 983cc1695e
Patch/window handling (#468)
* Do not wrap PlotView/ImageView

There is no need to wrap PlotView/ImageView into QMainWindow, since
only purpose of the QMainWindow is some default menu toolbar & menu
handling, that is not used by PyQtGraph anyway.

Moreover, every parent-less Qt widget can become window, so this
change just use PlotView/ImageView as windows, removing extra
complexity, eg. method forwarding, self.win property.

Another benefit of this change, it that these windows get initial
dimensions and titles as they were designed in .ui file.

* Properly cleanup on ImageView.close()

We should not close explicitly child widgets or clear scene, otherwise
Qt will deallocate children views, and cause "wrapped C/C++ object of
type ImageItem has been deleted" error next time we call close()
and/or some other methods.

All children, including self.ui.roiPlot, self.ui.graphicsView will be
closed together with its parent, so there is no need to close them
explicitly.

So the purpose of close it to reclaim the memory, but not to make the existing ImageView object dysfunctional.

* Remove references to plot & image windows after close

PyQtGraph images and plots module list variables are currently holding
references to all plots and image windows returned directly from main
module. This does not seem to be documented however, and causes the Qt
windows to be not released from memory, even if user releases all own
references.

This change removes the references from images/plots list once window
is closed, so when there is no other reference, window and all related
memory is reclaimed.

* Change all UI forms title from Form to PyQtGraph

Co-authored-by: Ogi Moore <ognyan.moore@gmail.com>
2020-06-01 11:23:18 -07:00
..
library Update Data.py (#1071) 2020-05-29 23:38:03 -07:00
__init__.py Reorganized directory structure to be more standard 2012-12-25 00:43:31 -05:00
Flowchart.py Fix selection of FlowchartWidget input/output nodes from issue #808 (#809) 2020-05-29 23:35:58 -07:00
FlowchartCtrlTemplate_pyqt5.py Patch/window handling (#468) 2020-06-01 11:23:18 -07:00
FlowchartCtrlTemplate_pyqt.py Patch/window handling (#468) 2020-06-01 11:23:18 -07:00
FlowchartCtrlTemplate_pyside2.py flip pyside2 template line endings 2018-05-17 09:02:41 -07:00
FlowchartCtrlTemplate_pyside.py Patch/window handling (#468) 2020-06-01 11:23:18 -07:00
FlowchartCtrlTemplate.ui Patch/window handling (#468) 2020-06-01 11:23:18 -07:00
FlowchartGraphicsView.py Improve ImageItem performance by scaling LUT instead of image when possible. 2016-01-30 00:10:25 -08:00
FlowchartTemplate_pyqt5.py Patch/window handling (#468) 2020-06-01 11:23:18 -07:00
FlowchartTemplate_pyqt.py Patch/window handling (#468) 2020-06-01 11:23:18 -07:00
FlowchartTemplate_pyside2.py flip pyside2 template line endings 2018-05-17 09:02:41 -07:00
FlowchartTemplate_pyside.py Patch/window handling (#468) 2020-06-01 11:23:18 -07:00
FlowchartTemplate.ui Patch/window handling (#468) 2020-06-01 11:23:18 -07:00
Node.py Merge remote-tracking branch 'duguxy/py3-flowchart-sl' into py3-flowchart 2019-05-23 17:49:21 -07:00
NodeLibrary.py Merge branch 'tommy3001-doc-updates' into develop 2014-02-28 21:07:43 -05:00
Terminal.py Improve ImageItem performance by scaling LUT instead of image when possible. 2016-01-30 00:10:25 -08:00