Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我检查了文档,但似乎没有找到对应的枚举定义.,那Qt::Key_是什么?
.
Qt::Key_
谢谢
我对必须捕获值的代码进行了小修改。它以 46 位十进制表示,对应Key_Period = 0x2e于 qnamespace.h
Key_Period = 0x2e
bool MyClass::event( QEvent* e ) { if ( e->type() == QEvent::KeyPress ) { QKeyEvent* ev = dynamic_cast<QKeyEvent*>( e ); int debug = ev->key(); } return QDialog::event( e ); }