Qt - Keyboard Layout

Are there any ways to get the current keyboard layout in Qt? Platform: Linux. Programming language: C ++. Thank you

+3
source share
2 answers

This may be what you are looking for:

QLocale QApplication::keyboardInputLocale ()
+3
source

QLocaleC means the default value, and if you have a mistake in the code, I think the header is QLocalenot included. I've had it before.

0
source

Source: https://habr.com/ru/post/1715163/


All Articles