简体   繁体   中英

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM