instead of PyQt5
one solution is to use QtPy abstraction layer with minimal changes this would allow using pyqt5/6, pyside5/6 pyqtgraph dependency also supports pyside