Recent

Author Topic: Register global hotkey  (Read 3018 times)

regs

  • Jr. Member
  • **
  • Posts: 99
Re: Register global hotkey
« Reply #15 on: March 12, 2026, 03:16:26 pm »
That's pretty correct way. Qt6 is the way to go (Qt5 does not have wayland updates anymore, so good for x11 only), but Qt6 is activelly developed for wayland. Also, yes, gtk3 supports both, yet unfinished, but not useable for heavy and complex apps, especially on wayland. Haven't tried gtk4 yet on wayland, and gtk4 changed api a lot, even some classes dissappeared, so really don't know if it ever will be added as ws on lazarus. Qt6 is the only ws on linux which will keep lazarus alive on linux in coming years. Check gtk2 in 5 yrs, even gtk3 won't be in new distros at that time.
Qt6 and GTK4 are very bad with high DPI. They offer no direct pixel access, just blurry raster upscaling. Until they manage to do high DPI right way they are out of options. GTK2 is working and LCL has own scaling with proper recomposition. Well, there are minor issues with GTK2, but still better than blurred interface. Needless to say that if they drop X11, they are out of option again. Wayland is dysfunctional mess. Can't cover even half of X11 functionality. For me input assistance and accessibility are crucial. Wayland have no plans to offer anything here. Working with clipboard is another story. X11 is quite complicated here and has its problems, surely not as simple as Win32, but Wayland puts complexity into entirely different level and perspective.

Speaking back of high DPI we really need to control it ourselves. LCL has rather good scaling capabilities. Qt6 still has a hack with environmental variable that can be applied with qputenv to disable that poor internal scaling. Right now we have both working. Right now both are working. First Qt6 is upscaling, then LCL is downscaling.
« Last Edit: March 12, 2026, 03:21:37 pm by regs »

Thaddy

  • Hero Member
  • *****
  • Posts: 18914
  • Glad to be alive.
Re: Register global hotkey
« Reply #16 on: March 12, 2026, 04:20:28 pm »
Qt6 and GTK4 are very bad with high DPI.
You obviously have no clue.  Better to either improve your knowledge or do not take part in this discussion.

Qt6 and  GTK4 are specifically designed to support high dpi.

I wonder if you even have a High DPI monitor to test your bold statement.
« Last Edit: March 12, 2026, 04:26:06 pm by Thaddy »
Recovered from removal of tumor in tongue following tongue reconstruction with a part from my leg.

 

TinyPortal © 2005-2018