Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 6

Qt-interest Archive, August 2006
Different keyevent handling Linux/OS X?


Message 1 in thread

Hi,

in my application there is a QLineEdit, having the mainwindow as parent.

All keyboard input should go to the LineEdit, if it's visible. (Kind of
modal). On Linux this works as expected, on Mac OS X, behaviour is
different, because global shortcuts get processed first. This means I
can't use e.g. "A" as shortcut, because it won't appear in the LineEdit.

This looks a bit like a bug to me, any ideas?

lineedit=new QLineEdit (this);
lineedit->setGeometry(p.x(),p.y(),200,25);
lineedit->setText(s);
lineedit->show();
lineedit->grabKeyboard();
lineedit->setFocus();

Best,

        Uwe 

-- 
 [ signature omitted ]