Return to Snippet

Revision: 28233
at July 5, 2010 09:25 by mms007


Updated Code
void MainWindow::keyPressEvent(QKeyEvent *event)
{

    switch (event->key())
    {
    //when keyboard "R" button is pressed 
    case Qt::Key_R:
       //do this
        ui->pushButton->hide();
    break;
    }
}

Revision: 28232
at July 5, 2010 09:06 by mms007


Initial Code
void MainWindow::keyPressEvent(QKeyEvent *event)
{

    switch (event->key())
    {
    //when keyboard "R" button is pressed 
    case Qt::Key_R:
       //do this
        ui->pushButton->hide();
    }
}

Initial URL

                                

Initial Description

                                

Initial Title
make keyboard pressed exec ur wish

Initial Tags

                                

Initial Language
C++