Recent

Author Topic: Window positioning in QT5  (Read 6436 times)

Fred vS

  • Hero Member
  • *****
  • Posts: 3720
    • StrumPract is the musicians best friend
Re: Window positioning in QT5
« Reply #15 on: June 28, 2025, 02:39:15 pm »
OK Fred, some will (honestly, I hope all will). But if your Mum asks you to install Linux on her computer, would you choose [Arch,Artix, OpenMandriva, Vipnix]. Say you live 250Km away, its going to be something just a bit more mainstream ?
Hello Davo.

I definitely wouldn't recommend installing Wayland.
If I had to help her via remote desktop (and RustDesk is my favorite), Wayland would be a disaster.
RustDesk doesn't have a Wayland version, and all Wayland-compatible remote desktops perform very poorly.

And for the gibberish, X11 is an old technology from the late 80s, the wheel is also an old invention. Should we use square wheels because it's newer?

Wayland was created in 2008, and nothing works as it should because its design has been stupid from the beginning.

Fre;D
« Last Edit: June 28, 2025, 02:51:06 pm by Fred vS »
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

PascalDragon

  • Hero Member
  • *****
  • Posts: 6230
  • Compiler Developer
Re: Window positioning in QT5
« Reply #16 on: June 28, 2025, 04:14:37 pm »
Fred, I hope so, Wayland is designed to be harder, bigger, less functional. We don't need it. But the big guys (apparently) do.

It really depends. E.g. creating a window and just rendering into it is nicer than with X11 (I've done both for our software at work). If only there wouldn't be so many small yet significant, annoying bits I'd be more than happy to move to Wayland, but as it is now...

HotShoe

  • Jr. Member
  • **
  • Posts: 62
Re: Window positioning in QT5
« Reply #17 on: June 28, 2025, 06:41:38 pm »
I have never seen wayland. I have not had anything to do with it since it's development. That is because it didn't do any of the things that we have to have for day to day work. I have been inside of the X source. as I remember it was over 1 million lines of code that looked a lot like an old spaghetti dinner. It is a mess, but it works.

It doesn't have the security that is needed for today's threats, but it works, and it works well enough to be reliable in any industry. As I said, I know the future is wayland or something like a cleaned up and more secure X. It would take a new team probably the better part of a year just to get familiar with where things are in the X source, and to get familiar with the writing styles of so many that came before them.

I do hope that X stays around.

--- Jem

Fred vS

  • Hero Member
  • *****
  • Posts: 3720
    • StrumPract is the musicians best friend
Re: Window positioning in QT5
« Reply #18 on: June 29, 2025, 03:31:04 pm »
-- creating a window and just rendering into it is nicer than with X11 (I've done both for our software at work). If only there wouldn't be so many small yet significant, annoying bits I'd be more than happy to move to Wayland, but as it is now...

Don't worry, Xlibre plans to integrate HDR10 and other Wayland "plus" features.
https://github.com/X11Libre/xserver/issues/269

(Sorry, but I think I've fallen in love with Xlibre, so, as a new convert, I'm preaching for my new church ;))
« Last Edit: June 29, 2025, 03:33:34 pm by Fred vS »
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

alanphys

  • Jr. Member
  • **
  • Posts: 57
Re: Window positioning in QT5
« Reply #19 on: August 21, 2025, 11:22:13 am »
You have problem with Qt5 because it uses wayland, and gtk2 uses x11 because it doesn't know anything about wayland.Start your app with -platform xcb and you're good to go :)

Thanks @zeljko for this tip and also the other Wayland tips. For me the windows positioning is a deal breaker. Unfortunately Wayland handles font scaling on my dual screen setup better than X11 so this is a good workaround.

The other problem I was having is that the tooltips and hints were also landing up in the middle of the screen. Sometimes not even on the same screen as the app. this solves that as well.

Regards
Alan
Alanphys
Fedora 34 + KDE/QT5, Tinycore 8, Windows XP-10
https://github.com/alanphys

 

TinyPortal © 2005-2018