Replymessage unavailable
You may wish to profile PySide2 and Qt - build Qt and PySide2 with debug symbols (probably fine to use a release Python build), then run python through valgrind. The results can be analyzed using kcachegrind.
You can then spot what the bottlenecks are at the function level.