Qml全局按鍵

建立一個c++類 對事件進行監聽c++ bool QmlKey::eventFilter(QObject *watched, QEvent *event) { if (event->type() == QEvent::KeyPress) { QKeyEvent *keyEvent = static_cast<QKeyEvent*>(event); i
相關文章
相關標籤/搜索