ScatterPlotItem.py: use non _USE_QRECT codepath for PySide6

verified by using ScatterPlotSpeedTest.py that PySide6 benefits from this.
This commit is contained in:
KIU Shueng Chuan 2021-01-15 12:47:13 +08:00
parent 6c9b910c5c
commit 10530568f0

View File

@ -34,7 +34,7 @@ __all__ = ['ScatterPlotItem', 'SpotItem']
# as the separate calls to this method are the current bottleneck. # as the separate calls to this method are the current bottleneck.
# See: https://bugreports.qt.io/browse/PYSIDE-163 # See: https://bugreports.qt.io/browse/PYSIDE-163
_USE_QRECT = QT_LIB != 'PySide2' _USE_QRECT = QT_LIB not in ['PySide2', 'PySide6']
## Build all symbol paths ## Build all symbol paths
name_list = ['o', 's', 't', 't1', 't2', 't3', 'd', '+', 'x', 'p', 'h', 'star', name_list = ['o', 's', 't', 't1', 't2', 't3', 'd', '+', 'x', 'p', 'h', 'star',