tags:

views:

541

answers:

1

I need to simulate "Enter" key event in QT. How can I do this?

+5  A: 
QKeyEvent *event = new QKeyEvent ( QEvent::KeyPress, Qt::Key_Enter);
QCoreApplication::postEvent (receiver, event)
PiedPiper