Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/qt/6.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
如何在QT上使用IContextMenu或Windows Shell ContextMenu_Windows_Qt_Contextmenu_Windows Shell - Fatal编程技术网

如何在QT上使用IContextMenu或Windows Shell ContextMenu

如何在QT上使用IContextMenu或Windows Shell ContextMenu,windows,qt,contextmenu,windows-shell,Windows,Qt,Contextmenu,Windows Shell,现在我正在使用Qt开发一个搜索应用程序,我想要的是右键单击一个文件以显示Windows Shell上下文菜单 但我只能得到IContextMenu或cmmenu。如何在Qt中使用它,或者如何将CMenu或IContextMenu转换为QMenu 您可以尝试将#包含在您的Qt项目中,并以某种方式合并Windows内容,尽管将Windows代码与Qt代码合并可能是一个巨大的挑战

现在我正在使用
Qt
开发一个搜索应用程序,我想要的是右键单击一个文件以显示Windows Shell上下文菜单

但我只能得到
IContextMenu
cmmenu
。如何在Qt中使用它,或者如何将CMenu或IContextMenu转换为QMenu

您可以尝试将
#包含在您的Qt项目中,并以某种方式合并Windows内容,尽管将Windows代码与Qt代码合并可能是一个巨大的挑战