This adds some remaining APIs that were deprecated in Qt5. These are easy to do
as they're all documented, e.g.
http://qt-project.org/doc/qt-5.0/qtwidgets/qgraphicsitem-compat.html
Tested with most of the examples. Although I can't be sure as I
don't know what the 'correct' output is, they look like they work.
Some issues with interaction e.g. on the color bar plot.
Adding compatibility for PyQt5 via a shim in Qt.py. This restructures the PyQt5 libraries
to match the layout seen in PyQt4, allowing it to continue to be used as drop in replacement.
This works up to the point of importing, however other API changes are broken - for example
the deprectation of .scale() on GraphicsItems throws an error currently.
- Renamed GraphicsView signals to avoid collision with ViewBox signals that
are wrapped in PlotWidget: sigRangeChanged => sigDeviceRangeChanged and
sigTransformChanged => sigDeviceTransformChanged.
- All signal disconnections that catch TypeError now also catch RuntimeError
for pyside compatibility.
- isosurface works for arrays with shapes > 255
- Fixed ImageItem exception building histogram when image has only one value
- Fixed MeshData exception caused when vertexes have no matching faces
- Fixed GLViewWidget exception handler
Renamed args for clarity, improved documentation
Fixed interaction bugs
- zooming works correctly when view is against limit
- no more phantom target range; target is reset during mouse interaction.
ImageItem.getHistogram is more clever about constructing histograms:
- integer dtype images now have integer-aligned bins, with bin number
determined by a target value
- step size is automatically chosen based on a target image size
- bins and step arguments have default values 'auto'
- integer dtype images now have integer-aligned bins, with bin number
determined by a target value
- step size is automatically chosen based on a target image size
- bins and step arguments have default values 'auto'
When an ImageItem's data has an integer dtype, this patch ensures that
each bin of the LUT histogram contains the same number of integer
values, in order to avoid "spikes" in the histogram that are merely due
to some bins covering more integer values than others.
This commit needs testing (it was rebased from an old commit).