From 96b5dfdc3e82bd7b0de7292e1fee592968e726b5 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Mon, 19 Dec 2022 17:26:15 -0500 Subject: [PATCH] Enable the experimental `QPrivatePath` functionality from latest `pyqtgraph` --- piker/ui/_pg_overrides.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/piker/ui/_pg_overrides.py b/piker/ui/_pg_overrides.py index 397954fd..b7c0b9aa 100644 --- a/piker/ui/_pg_overrides.py +++ b/piker/ui/_pg_overrides.py @@ -54,6 +54,10 @@ def _do_overrides() -> None: pg.functions.invertQTransform = invertQTransform pg.PlotItem = PlotItem + # enable "QPainterPathPrivate for faster arrayToQPath" from + # https://github.com/pyqtgraph/pyqtgraph/pull/2324 + pg.setConfigOption('enableExperimental', True) + # NOTE: the below customized type contains all our changes on a method # by method basis as per the diff: