I use Arch Linux with KDE Plasma ( Wayland ) and this PyQt6 code runs great on Windows / MacOS. ( See: github repository of the user “Khufos” with the title " Pyqt6 Title hide and window move" ).
It even runs well on Linux with XFCE but unfortunately not with KDE.
What could be the issue?