Search code examples
apiqtshellcontextmenuwindows-explorer

Windows Shell Context Menu recreated with qt


Is there a way to query from qt the entries of the shell context menu (name and command)? Only if the application is run on Windows of course.


Solution

  • This is very similar to this question, basically SHParseDisplayName+SHBindToParent to get IShellFolder, then call GetUIObjectOf on that to get IContextMenu. That is the "native" way to do it, not sure if qt has any wrappers you can use.