Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QWindowsKeyMapper Class Reference

Translates Windows keys to QWindowSystemInterface events. More...

#include <qwindowskeymapper.h>

Inheritance diagram for QWindowsKeyMapper:
Collaboration diagram for QWindowsKeyMapper:

Public Member Functions

 QWindowsKeyMapper ()
 ~QWindowsKeyMapper ()
void changeKeyboard ()
void setUseRTLExtensions (bool e)
bool useRTLExtensions () const
void setDetectAltGrModifier (bool a)
bool detectAltGrModifier () const
bool translateKeyEvent (QWindow *widget, HWND hwnd, const MSG &msg, LRESULT *result)
 To be called from the window procedure.
QWindowkeyGrabber () const
void setKeyGrabber (QWindow *w)
Qt::KeyboardModifiers queryKeyboardModifiers () const override
QList< QKeyCombinationpossibleKeyCombinations (const QKeyEvent *e) const override
Public Member Functions inherited from QPlatformKeyMapper
virtual ~QPlatformKeyMapper ()

Detailed Description

Translates Windows keys to QWindowSystemInterface events.

In addition, handles some special keys to display system menus, etc. The code originates from qkeymapper_win.cpp.

Definition at line 38 of file qwindowskeymapper.h.

Constructor & Destructor Documentation

◆ QWindowsKeyMapper()

QWindowsKeyMapper::QWindowsKeyMapper ( )
explicit

Definition at line 63 of file qwindowskeymapper.cpp.

References changeKeyboard().

Here is the call graph for this function:

◆ ~QWindowsKeyMapper()

QWindowsKeyMapper::~QWindowsKeyMapper ( )
default

Member Function Documentation

◆ changeKeyboard()

void QWindowsKeyMapper::changeKeyboard ( )

Definition at line 603 of file qwindowskeymapper.cpp.

Referenced by QWindowsKeyMapper(), and translateKeyEvent().

Here is the caller graph for this function:

◆ detectAltGrModifier()

bool QWindowsKeyMapper::detectAltGrModifier ( ) const
inline

Definition at line 51 of file qwindowskeymapper.h.

◆ keyGrabber()

QWindow * QWindowsKeyMapper::keyGrabber ( ) const
inline

Definition at line 55 of file qwindowskeymapper.h.

◆ possibleKeyCombinations()

QList< QKeyCombination > QWindowsKeyMapper::possibleKeyCombinations ( const QKeyEvent * e) const
overridevirtual

Reimplemented from QPlatformKeyMapper.

Definition at line 1337 of file qwindowskeymapper.cpp.

◆ queryKeyboardModifiers()

Qt::KeyboardModifiers QWindowsKeyMapper::queryKeyboardModifiers ( ) const
overridevirtual

Reimplemented from QPlatformKeyMapper.

Definition at line 1323 of file qwindowskeymapper.cpp.

◆ setDetectAltGrModifier()

void QWindowsKeyMapper::setDetectAltGrModifier ( bool a)
inline

Definition at line 50 of file qwindowskeymapper.h.

◆ setKeyGrabber()

void QWindowsKeyMapper::setKeyGrabber ( QWindow * w)
inline

Definition at line 56 of file qwindowskeymapper.h.

◆ setUseRTLExtensions()

void QWindowsKeyMapper::setUseRTLExtensions ( bool e)
inline

Definition at line 47 of file qwindowskeymapper.h.

◆ translateKeyEvent()

bool QWindowsKeyMapper::translateKeyEvent ( QWindow * widget,
HWND hwnd,
const MSG & msg,
LRESULT * result )

To be called from the window procedure.

Definition at line 821 of file qwindowskeymapper.cpp.

References changeKeyboard().

Here is the call graph for this function:

◆ useRTLExtensions()

bool QWindowsKeyMapper::useRTLExtensions ( ) const
inline

Definition at line 48 of file qwindowskeymapper.h.


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