天天看点

Qt键盘事件 ESC

void GLWidget::keyPressEvent(QKeyEvent *event)

{

switch(event->key())

{

           Qt::Key_Escape

        }

}

继续阅读