5#ifndef CUSTOMNOTIFYAPP_H
6#define CUSTOMNOTIFYAPP_H
9#include <QGuiApplication>
12#ifndef WIN32_LEAN_AND_MEAN
13#define WIN32_LEAN_AND_MEAN
16#include <unordered_set>
24 using QGuiApplication::QGuiApplication;
28 HHOOK m_keyboardHook =
nullptr;
31 std::unordered_set<quint32> m_pressedScanCodes;
34 static LRESULT CALLBACK LowLevelKeyboardProc(
int nCode,
45 Qt::ApplicationState state,
48 bool foregroundOwned) -> bool;
49 auto notify(QObject* receiver, QEvent* event) ->
bool override;