Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
请告诉我如何在 Qt 中获取当前键盘语言?如果我使用这个:
QLocale loc = QApplication::keyboardInputLocale(); QString keyBoardLang = loc.languageToString(loc.language()); qDebug()<<keyBoardLang;
我总是得到与所选语言无关的相同结果。我更喜欢跨平台的答案。