Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/148.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Qt5(c+;+;)android监听系统按钮_Android_C++_Qt_Qevent - Fatal编程技术网

Qt5(c+;+;)android监听系统按钮

Qt5(c+;+;)android监听系统按钮,android,c++,qt,qevent,Android,C++,Qt,Qevent,我想在我的android应用程序中使用菜单按钮(4.x通常是软件按钮,而不是硬件按钮),但我找不到合适的QEvent来这样做。我试着去做 bool GLViewer::event(QEvent * e){ qDebug()<<e->type(); } bool GLViewer::事件(QEvent*e){ qDebug()如本文所述,您可以在主窗口上使用keyReleaseEvent()

我想在我的android应用程序中使用菜单按钮(4.x通常是软件按钮,而不是硬件按钮),但我找不到合适的QEvent来这样做。我试着去做

bool GLViewer::event(QEvent * e){
    qDebug()<<e->type();
}
bool GLViewer::事件(QEvent*e){
qDebug()如本文所述,您可以在主窗口上使用keyReleaseEvent()