Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get a context menu for file system actions in Qt?

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.

like image 220
Alex_L Avatar asked Jan 18 '14 16:01

Alex_L


1 Answers

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.

like image 99
dvvrd Avatar answered Sep 28 '22 21:09

dvvrd