Hi,

I've a two Forms (Form1 and Form2) in a program. When program starts two forms are run.

I have several codes on Form1 eg. many Key_Events

if (event->key() == Qt::Key_M) {
.......
}
else if (event->key() == Qt::Key_Y) {
.........
}
else if (event->key() == Qt::Key_G) {
.....
..........
}

On Form2, I add several pushbuttons.

When I pressed a button, I want to run (eg. Key_M Event of Form1).
When I pressed another, do another event.

I want to get sample code or example project.

Thanks