QHotkey: Print hook not working

This is the code I use for creating the hotkey:

d_hotkey = new QHotkey(Qt::Key_Print, Qt::NoModifier, true, this);
qDebug() << "Is registered:" << d_hotkey->isRegistered();

It is printing true, but however many ways I try to connect the signal to a slot, it just doesn’t work. It either prints:

qt.core.qobject.connect: QObject::connect: signal not found in QHotkey

or straight up doesn’t do anything.

I’m on a Windows system.

Any ideas why this could be?

About this issue

Most upvoted comments

Yeah well, I might try to look into it, I don’t feel like I’m smart enough for windows api tho lol

Anyways, thank you for the help, let’s keep this issue open then.

Oh I can do that? huh lemme try