Lag when dragging in Qt apps
Appologize in advance if I am posting this in wrong place.
I am using graphic tablet 100% in my work (3d artist), and I am having issue with some Qt apps. Everytime I need to drag something in app, like create new shape, or move some text, it will significantly lag. This is only when using tablet. Also it happens with 3 vendor tablets I have, Wacom, Huion and XPPen. Happens in other apps too, I think ones that are using Qt5. Also while doing many tests I found out that it happens with Deepin linux interface too (also built on Qt). One workaround I found is, and this is what I would like to figure out why this is happening, is if I do xinput float deviceID before starting app, and xinput reattach deviceID after it is started, there will be no lag. But if plug some USB, or something else happens, I need to restart entire process. Also interesting thing is that XPPen driver provide option to use tablet in Mouse mode, than do not have this problem.
Happens on 2 workstations and laptop. All using Nvidia.
Nothing specific in logs. Tried many QT env variables but nothing changes. Happens with both KDE and Gnome DE. Tested on Ubuntu 22.04, 23.04, Fedora, kubuntu and Deepin. Only in Qt apps.
As I am not sure where to look for help, I started here hoping someone will have some idea how to debug it and point me to right direction to try to solve why is it happening.
Thanks!