7

Is there any way to get a system context menu for files?

I need to have all the commands from system menu, not only simple operations like copy/paste/rename, but also some non-standard, like Dropbox actions.

I am using Qt 5.x on Windows, but a solution for Mac OS would be useful, too. If the answer requires a library independent of Qt, that is ok too.

jonspaceharper
  • 4,207
  • 2
  • 22
  • 42
Alex_L
  • 91
  • 7
  • 1
    Clarify in the question some information about your platform (or maybe you need this feature to be cross-platform), the answer really depends on it. – dvvrd Jan 18 '14 at 17:24
  • As far as I know there is no such function in Qt. You need to find another library or implement this manually. – Pavel Strakhov Jan 19 '14 at 20:53
  • +1 for this question. It might be Windows-specific solution for me (there always is #ifdef), but cross-platform solution would be the greatest! – Mariusz Jaskółka May 25 '16 at 06:58
  • 1
    See https://stackoverflow.com/questions/10668456/how-to-show-windows-explorer-context-right-click-menu, you'll definitely have to use Winapi. – sashoalm May 31 '16 at 15:44

1 Answers1

4

Qt does not provide such feature. But you could use native API for each platform. See

How do you show the Windows Explorer context menu from a C# application?

for getting Windows explorer menu.

Community
  • 1
  • 1
dvvrd
  • 1,679
  • 11
  • 20