2
現在我正在開發一個使用Qt
的搜索應用程序,我想要的是右鍵單擊文件以顯示Windows Shell ContextMenu like this。如何在QT上使用IContextMenu或Windows Shell ContextMen
但我所能得到的是IContextMenu
或CMenu
。我如何在Qt中使用它,或將CMenu或IContextMenu轉換爲QMenu。
現在我正在開發一個使用Qt
的搜索應用程序,我想要的是右鍵單擊文件以顯示Windows Shell ContextMenu like this。如何在QT上使用IContextMenu或Windows Shell ContextMen
但我所能得到的是IContextMenu
或CMenu
。我如何在Qt中使用它,或將CMenu或IContextMenu轉換爲QMenu。
你可以在你的Qt項目中嘗試#include <Windows.h>
,並以某種方式整合Windows的東西,儘管將Windows代碼與Qt代碼結合起來可能是一個巨大的挑戰。