From 10530568f04017ea5db77a1a5eee1566e0814716 Mon Sep 17 00:00:00 2001 From: KIU Shueng Chuan Date: Fri, 15 Jan 2021 12:47:13 +0800 Subject: [PATCH] ScatterPlotItem.py: use non _USE_QRECT codepath for PySide6 verified by using ScatterPlotSpeedTest.py that PySide6 benefits from this. --- pyqtgraph/graphicsItems/ScatterPlotItem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyqtgraph/graphicsItems/ScatterPlotItem.py b/pyqtgraph/graphicsItems/ScatterPlotItem.py index 5c776f52..84424c64 100644 --- a/pyqtgraph/graphicsItems/ScatterPlotItem.py +++ b/pyqtgraph/graphicsItems/ScatterPlotItem.py @@ -34,7 +34,7 @@ __all__ = ['ScatterPlotItem', 'SpotItem'] # as the separate calls to this method are the current bottleneck. # 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 name_list = ['o', 's', 't', 't1', 't2', 't3', 'd', '+', 'x', 'p', 'h', 'star',