Qt5 and Qt6 forms return invalid Left and Top on Wayland systems
- Lazarus/FPC Version: Main, 3.0, apparently all
- Operating System: Linux
- CPU / Bitness: 64
What happens
Using Qt5 or Qt6 on Wayland (ie Gnome, KDE) form1.top and form1.left are incorrectly reported.
What did you expect
Top and Left should show the position of the top-left point of the form. Works as expected with gtk2, Win32 and Cocoa. Does work as expected using Qt5 and Qt6 if Wayland is not involved.
Steps to reproduce
Use attached very simple demo or just report on a Form's Top and Left properties, set widget set to Qt5/6 and run the resulting binary on a recent Gnome or KDE system.