OK, I have tried really hard to break it and failed ! Works perfectly. Tried an old Fedora 35 with Mate, the Fedora 38 with gnome. Debian bookworm with Mate and Gnome. I run my test app and it looked so good, I built my own app in Qt6 and it rocks !
zeljko and irfanbagus - your help and persistence here in the face of really hard bug has been fantastic !
I could push out a Qt6 version of my app right now, show that to the the nay sayers who scoff at FPC/Lazarus for being stuck with old gtk2 !
There has been a lot of talk recently on the Debian Pascal-Dev list to move all the old gtk2 apps to qt5, they are desperate to leave gtk2 behind. And, now, it makes sense.
Davo
Just a mention, I am sure its nothing to do with this issue but on Gnome, sometimes, after you close a dialog, it triggers a notification "Form1 is ready". And we still see a lot of wayland related noise on the console, Qt is still uncomfortable with Wayland. Easy answer is of course, to replace Gnome with almost any other DE and wow, doesn't your computer run faster !