Forum > QT
QT6 and new stuff
zeljko:
That looks interesting, but why include QX11Info and Xlib ?
1.It can work with xcb only included.
2.If it's suposed to work on win32 and mac then ifdefs for platforms should be added, so native events can be passed to the lcl.
3.It's pitty to have keypress only events from nativeevent hook.
El Salvador:
Indeed, you are right. Unfortunately I am very inexperienced on QT and c(++).
--- Quote ---why include QX11Info and Xlib ?
--- End quote ---
Removed. Thanks. https://github.com/salvadorbs/AsuiteComps/commit/45f47680f97363d01efea01d5e5bc10ffb2f5b44#diff-da8349f220705517018be2ff4d677f21b2b15a0db3baeb3948b500e70b470c72
--- Quote ---2.If it's suposed to work on win32 and mac then ifdefs for platforms should be added, so native events can be passed to the lcl.
--- End quote ---
I would like to, but I don't have the time and knowledge to expand on windows & mac. Also, for my software, I only needed the Linux & QT combination (on windows, I use the win32 widgetset) and capture global hotkey.
--- Quote ---3.It's pitty to have keypress only events from nativeevent hook.
--- End quote ---
What other events were you thinking about?
zeljko:
Actually, you're grabbing only keyPress event on xcb...why not other events if nativeeventfilter hook is installed ?
El Salvador:
For global hotkey, you need only key press event (XCB_KEY_PRESS). Maybe you mean it's better to bring the event to pascal and handle it via LCL?
zeljko:
Yes, not only key events, but others to, just pass native event to lcl and handle it there.
Navigation
[0] Message Index
[#] Next page
[*] Previous page