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
qinputdevicemanager_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QINPUTDEVICEMANAGER_P_H
5#define QINPUTDEVICEMANAGER_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtGui/private/qtguiglobal_p.h>
19#include <QtCore/qobject.h>
20
22
24
25class Q_GUI_EXPORT QInputDeviceManager : public QObject
26{
28 Q_DECLARE_PRIVATE(QInputDeviceManager)
29
30public:
40
41 explicit QInputDeviceManager(QObject *parent = nullptr);
43
44 int deviceCount(DeviceType type) const;
45
46 void setCursorPos(const QPoint &pos);
47
48 Qt::KeyboardModifiers keyboardModifiers() const;
49 void setKeyboardModifiers(Qt::KeyboardModifiers mods);
50
54};
55
57
59 QInputDeviceManager__DeviceType, Q_GUI_EXPORT)
60
61#endif // QINPUTDEVICEMANAGER_P_H
QInputDeviceManager acts as a communication hub between QtGui and the input handlers.
void deviceListChanged(QInputDeviceManager::DeviceType type)
void cursorPositionChangeRequested(const QPoint &pos)
~QInputDeviceManager() override
\inmodule QtCore
Definition qobject.h:103
\inmodule QtCore\reentrant
Definition qpoint.h:25
Combined button and popup list for selecting options.
#define QT_DECL_METATYPE_EXTERN_TAGGED(TYPE, TAG, EXPORT)
Definition qmetatype.h:1376
GLenum type
#define Q_OBJECT
#define Q_SIGNALS