Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
src_corelib_kernel_qabstractnativeeventfilter_win.cpp
Go to the documentation of this file.
1// Copyright (C) 2022 Laszlo Papp <lpapp@kde.org>
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
6{
7public:
8 bool nativeEventFilter(const QByteArray &eventType, void *message, qintptr *) override
9 {
10 if (eventType == "windows_generic_MSG") {
11 MSG *msg = static_cast<MSG *>(message);
12 // ...
13 } else if (eventType == "windows_dispatcher_MSG") {
14 MSG *msg = static_cast<MSG *>(message);
15 // ...
16 }
17 return false;
18 }
19};
bool nativeEventFilter(const QByteArray &eventType, void *message, qintptr *) override
This method is called for every native event.
\inmodule QtCore
Definition qbytearray.h:57
GLuint GLsizei const GLchar * message
ptrdiff_t qintptr
Definition qtypes.h:166
struct tagMSG MSG