How to change the Mac OS X Keyboard Layout programmatically?
问题 My Qt app supports changing input language on Linux and Windows. I want to add support for changing the input language in Mac OSX, too. Unfortunately I don't have any information about the Mac SDK. (My first and last work with OS X was compiling Qt and compiling my app!) I googling this problem and found that I need to use Text Input Source Services and also I found these codes: TISInputSourceRef isref; isref = TISCopyCurrentKeyboardInputSource(); CFDataRef uchr = (CFDataRef