Auf dieser Seite

Qt3DInput::QInputSettings Class

class Qt3DInput::QInputSettings

Die Klasse „QInputSettings“ enthält einen Zeiger auf ein Objekt, das eine Eingabeereignisquelle darstellt. Mehr...

Header: #include <qinputsettings.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3dinput)
target_link_libraries(mytarget PRIVATE Qt6::3dinput)
qmake: QT += 3dinput
In QML: InputSettings
Erbt von: Qt3DCore::QComponent
Status: Veraltet

Diese Klasse ist veraltet. Wir raten dringend davon ab, sie in neuem Code zu verwenden.

Eigenschaften

Öffentliche Funktionen

QObject *eventSource() const

Öffentliche Slots

void setEventSource(QObject *eventSource)

Signale

void eventSourceChanged(QObject *)

Ausführliche Beschreibung

Die Komponente „QInputSettings“ muss als Komponente der Stammentitä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 sollen. Beispielsweise kann eine Instanz von „ QWindow “ eine Ereignisquelle sein.

Siehe auch „ QMouseDevice “ und „ QKeyboardDevice “.

Dokumentation zu den Eigenschaften

eventSource : QObject*

Enthält die aktuelle Ereignisquelle. Eine Ereignisquelle ist ein Objekt, das verschiedene Eingabeereignisse wie Maus- oder Tastaturereignisse empfangen kann. In der Regel handelt es sich dabei um eine Instanz von „ QWindow “.

Zugriffsfunktionen:

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

Notifier-Signal:

void eventSourceChanged(QObject *)

© 2026 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.