Recent

Author Topic: Using QT5 with IDE form designer  (Read 1556 times)

Fred vS

  • Hero Member
  • *****
  • Posts: 3805
    • StrumPract is the musicians best friend
Re: Using QT5 with IDE form designer
« Reply #15 on: March 02, 2026, 02:51:39 pm »
An easier solution that works now, probably for some time to come, is to use XCB, our Qt5 and Qt6 apps will accept a command line parameter, "-platform xcb"  (single dash and no '=') and that will make it use the older x11 protocols, windows can report their positions and be restored to those positions. Faster screen i/o too. On some DEs, it fixes SystemTray problems. No code changes.

Note that the last libX11.so use xcb library in nearly all his methods now.
(Okay, this has nothing to do with the topic, it's just to defuse a libX11.so vs libxcb.so war  ;)).
« Last Edit: March 02, 2026, 03:20:38 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

dbannon

  • Hero Member
  • *****
  • Posts: 3723
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Using QT5 with IDE form designer
« Reply #16 on: March 02, 2026, 11:48:34 pm »
Note that platform xcb won't work if xcb libs aren't installed. Havent tested on distro which have XWayland only, how it redirects (if) from xcb to XWayland.

I have not found, yet, a distro without it installed by default. Its in Debian Unstable, due for release in 2028 (?) but obviously could be removed before then. Would seem a good idea to list it as a dependency just in case...

The question might be will Qt7 know how to switch to xcb ?

Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

Fred vS

  • Hero Member
  • *****
  • Posts: 3805
    • StrumPract is the musicians best friend
Re: Using QT5 with IDE form designer
« Reply #17 on: March 03, 2026, 12:08:46 am »
The question might be will Qt7 know how to switch to xcb ?

xcb (https://xcb.freedesktop.org/) is part of freedesktop.org, like Wayland, XWayland and X11.
Of course if XWayland is installed, libxcb /libX11 are installed too, they are the client interface for XWayland/X11.  And if Qt7 is using libX11, no problem, libX11 methods use xcb now.
« Last Edit: March 03, 2026, 12:16:32 am 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

 

TinyPortal © 2005-2018