Forum > QT

QT6 and new stuff

(1/6) > >>

El Salvador:
Hi,

@zeljko I'm porting my component ASuiteComps in QT6 (precisely global hotkey) and I am seeing that they have removed QX11Extras from QT. In QT5 I needed QX11Info_display, but now I need to use nativeInterface (and QNativeInterface) method from QGuiApplication https://doc-snapshots.qt.io/qt6-dev/qguiapplication.html#nativeInterface(https://code.qt.io/cgit/qt/qtbase.git/commit/?id=f5203eeada83bbe8e316a5188e24636af3e83b09).

I saw that this code is missing in libqt6pas bindings. Is there any hope it could be added?

zeljko:
Yes, feel free to create patch

zeljko:
hmmmm.....there's warning about QNativeInterface: "Warning: There are no source or binary compatibility guarantees for the native interface APIs, meaning that an application using these interfaces is only guaranteed to work with the Qt version it was developed against."

zeljko:
I've added TQtWidgetSet.x11Display:PDisplay
https://gitlab.com/freepascal.org/lazarus/lazarus/-/commit/1751d3c2edc6197773d5ad48e1086b238b411613
So, no need to implement risky QNativeInterface.

El Salvador:
Hey thanks! I should have adapted the code to qt6, but I still have to figure out why the hotkeys only work in the program window and not globally.

Anyway, if I will complete it, is there any hope for including this code (see https://github.com/salvadorbs/AsuiteComps/tree/main/library/platform/unix/QGHotkeyHookPas/src) in libqt5pas & libqt6pas for Lazarus 2.4?

Navigation

[0] Message Index

[#] Next page

Go to full version