/ Published in: C++
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
void MainWindow::keyPressEvent(QKeyEvent *event)
{
switch (event->key())
{
//when keyboard "R" button is pressed
case Qt::Key_R:
//do this
ui->pushButton->hide();
break;
}
}
Comments
 Subscribe to comments
                    Subscribe to comments
                
                