Falkon Develop
Cross-platform Qt-based web browser
QmlKeyEvent Class Reference

The class exposing KeyEvent to QML. More...

#include <qmlkeyevent.h>

Inheritance diagram for QmlKeyEvent:

Public Member Functions

 QmlKeyEvent (QKeyEvent *keyEvent=nullptr, QObject *parent=nullptr)
 
int count () const
 
bool isAutoRepeat () const
 
int key () const
 
int modifiers () const
 
quint32 nativeModifiers () const
 
quint32 nativeScanCode () const
 
quint32 nativeVirtualKey () const
 
QString text () const
 
void clear ()
 

Properties

int count
 number of keys involved in this event More...
 
bool autoRepeat
 checks if the event comes from an auto-repeating key More...
 
int key
 key code which is pressed/released More...
 
int modifiers
 modifiers associated with the event More...
 
quint32 nativeModifiers
 native modifiers of the event More...
 
quint32 nativeScanCode
 native scan code of the event More...
 
quint32 nativeVirtualKey
 native virtual key, or key sum of the event More...
 
QString text
 Returns the Unicode text that this key generated. More...
 

Detailed Description

The class exposing KeyEvent to QML.

Definition at line 26 of file qmlkeyevent.h.

Constructor & Destructor Documentation

◆ QmlKeyEvent()

QmlKeyEvent::QmlKeyEvent ( QKeyEvent *  keyEvent = nullptr,
QObject *  parent = nullptr 
)
explicit

Definition at line 21 of file qmlkeyevent.cpp.

Member Function Documentation

◆ clear()

void QmlKeyEvent::clear ( )

Definition at line 91 of file qmlkeyevent.cpp.

◆ count()

int QmlKeyEvent::count ( ) const

Definition at line 27 of file qmlkeyevent.cpp.

◆ isAutoRepeat()

bool QmlKeyEvent::isAutoRepeat ( ) const

Definition at line 35 of file qmlkeyevent.cpp.

◆ key()

int QmlKeyEvent::key ( ) const

Definition at line 43 of file qmlkeyevent.cpp.

◆ modifiers()

int QmlKeyEvent::modifiers ( ) const

Definition at line 51 of file qmlkeyevent.cpp.

◆ nativeModifiers()

quint32 QmlKeyEvent::nativeModifiers ( ) const

Definition at line 59 of file qmlkeyevent.cpp.

◆ nativeScanCode()

quint32 QmlKeyEvent::nativeScanCode ( ) const

Definition at line 67 of file qmlkeyevent.cpp.

◆ nativeVirtualKey()

quint32 QmlKeyEvent::nativeVirtualKey ( ) const

Definition at line 75 of file qmlkeyevent.cpp.

◆ text()

QString QmlKeyEvent::text ( ) const

Definition at line 83 of file qmlkeyevent.cpp.

Property Documentation

◆ autoRepeat

bool QmlKeyEvent::autoRepeat
read

checks if the event comes from an auto-repeating key

Definition at line 1 of file qmlkeyevent.h.

◆ count

int QmlKeyEvent::count
read

number of keys involved in this event

Definition at line 1 of file qmlkeyevent.h.

◆ key

int QmlKeyEvent::key
read

key code which is pressed/released

Definition at line 1 of file qmlkeyevent.h.

◆ modifiers

int QmlKeyEvent::modifiers
read

modifiers associated with the event

Definition at line 1 of file qmlkeyevent.h.

◆ nativeModifiers

quint32 QmlKeyEvent::nativeModifiers
read

native modifiers of the event

Definition at line 1 of file qmlkeyevent.h.

◆ nativeScanCode

quint32 QmlKeyEvent::nativeScanCode
read

native scan code of the event

Definition at line 1 of file qmlkeyevent.h.

◆ nativeVirtualKey

quint32 QmlKeyEvent::nativeVirtualKey
read

native virtual key, or key sum of the event

Definition at line 1 of file qmlkeyevent.h.

◆ text

QString QmlKeyEvent::text
read

Returns the Unicode text that this key generated.

Definition at line 1 of file qmlkeyevent.h.


The documentation for this class was generated from the following files: