QInputSettings Class

class Qt3DInput::QInputSettings

Die Klasse QInputSettings enthält den Zeiger auf ein Objekt, das als Quelle für Eingabeereignisse dient. Mehr...

Kopfzeile: #include <QInputSettings>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3dinput)
target_link_libraries(mytarget PRIVATE Qt6::3dinput)
qmake: QT += 3dinput
In QML: InputSettings
Vererbt: Qt3DCore::QComponent
Status: Veraltet

Eigenschaften

Öffentliche Funktionen

QObject *eventSource() const

Öffentliche Slots

void setEventSource(QObject *eventSource)

Signale

void eventSourceChanged(QObject *)

Detaillierte Beschreibung

Die Komponente QInputSettings muss als Komponente der Wurzelentität der Szene festgelegt werden. Sie speichert einen Zeiger auf das Objekt, das als Quelle für Eingabeereignisse dient, die von verschiedenen Eingabeklassen verarbeitet werden. Zum Beispiel kann eine QWindow Instanz eine Ereignisquelle sein.

Siehe auch QMouseDevice und QKeyboardDevice.

Dokumentation der Eigenschaft

eventSource : QObject*

Enthält die aktuelle Ereignisquelle. Eine Ereignisquelle ist ein Objekt, das in der Lage ist, verschiedene Eingabeereignisse zu empfangen, z. B. Maus- oder Tastaturereignisse. In der Regel handelt es sich um eine Instanz von QWindow.

Zugriffsfunktionen:

QObject *eventSource() const
void setEventSource(QObject *eventSource)

Benachrichtigungssignal:

void eventSourceChanged(QObject *)

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.