Qt 事件過濾 回車鍵

bool MainWindow::eventFilter(QObject *obj, QEvent *event) { if(event->type()==QEvent::KeyPress) { QKeyEvent *keyEvent = static_cast<QKeyEvent*>(event); qDebug()<<keyEvent
相關文章
相關標籤/搜索