This is very similar to this question , basically SHParseDisplayName + SHBindToParent to get IShellFolder and then call GetUIObjectOf to get IContextMenu . This is a “native” way of doing this, not sure if qt has any wrappers you can use.
source
share