Hennadii Chernyshchyk
Hennadii Chernyshchyk
So QHotkey should link with X11Extras for Qt5?
No, if a library depends on something - CMake should propagate it dependency.
I believe we link it here: https://github.com/Skycoder42/QHotkey/blob/34777f2e91b72cdc62a415975cc3ec53475ed022/CMakeLists.txt#L62-L66 But it doesn't work for you?
> links to target "Qt5::X11Extras" but the target was not So CMake cannot find `Qt5::X11Extras` on your system. Unfortunately, something wrong with your system configuration.
> The point is unless I add: find_package(Qt5X11Extras REQUIRED) to my cmake I am getting the error like at the beginning. Can't help you here. It should just work.
How do you connect to the signal?
> qt.core.qobject.connect: QObject::connect: signal not found in QHotkey This message just says that you connected it wrong. Probably from one of the attempts. But last two are 100% good. So...
> Hm.. I get the warning on the lambda one so that's interesting. That's impossible. > Also, just to clarify, Qt::Key_Print is print screen right? Right.
I can't reproduce it, the example from the README works jut fine for me without this message. It could be cause only by the old connect syntax. Something wrong with...
> Because it feels kinda wrong. That's the only thing I can think of at this point, since the HotkeyTest example works. You probably using it wrong. Try this one:...