I have several issues:
- Catch keyboard layout change event.
- Get current keyboard language.
- Change keyboard layout from my program.
I tried this first:
bool MyWindow::event(QEvent* e)
{
if (e->type() == QEvent::KeyboardLayoutChange)
qDebug() << "Keyboard Layout Changed";
return QWidget::event(e);
}
But this type of event is never passed. Also, I have no idea how to solve the other 2 issues.
Could you please show me any workable example on the latest Qt version or some other cross-platform solutions of this problem?
Qt 5.0.2
Windows 7 Visual Studio 2012
Ubuntu 12.04 G++ 4.7.0