views:

198

answers:

1

Hello, are there any ways to get current keyboard layout in Qt? Platform: Linux. Programming language: C++. Thanks.

+2  A: 

This may be what you are looking for:

QLocale QApplication::keyboardInputLocale ()
Alan Haggai Alavi
QApplication::keyboardInputLocale().name() always returns QLocale::C. why?
Ockonal
Sorry, I am not sure of it.
Alan Haggai Alavi