minimoog
11th February 2010, 01:52
I have this problem with keyPressEvent handler.
void MainWindow::keyPressEvent(QKeyEvent *e)
{
if (e->key() == Qt::Key_N) {
//do some stuff
}
QMainWindow::keyPressEvent(e);
}
When my keyboard layout is English, when I press 'N' it's working ok, but when I change the layout to some other language (in my case macedonian) I don't receive that I'm pressing the 'N' button. (if statement fails)
Anyone know why is this? Is this a bug? Solution?
Thanks in advance,
Toni
void MainWindow::keyPressEvent(QKeyEvent *e)
{
if (e->key() == Qt::Key_N) {
//do some stuff
}
QMainWindow::keyPressEvent(e);
}
When my keyboard layout is English, when I press 'N' it's working ok, but when I change the layout to some other language (in my case macedonian) I don't receive that I'm pressing the 'N' button. (if statement fails)
Anyone know why is this? Is this a bug? Solution?
Thanks in advance,
Toni