开发者

Localizing context menus in QT?

开发者 https://www.devze.com 2023-02-17 19:12 出处:网络
What is the best way to localize default context menus in Qt? An example is the context menu that pops up on right click from the QPlainTex开发者_如何学运维tEdit.

What is the best way to localize default context menus in Qt?

An example is the context menu that pops up on right click from the QPlainTex开发者_如何学运维tEdit. This needs to work on PC and Mac.

I know it's possible to iterate over each menu item in a custom menu, and apply translations to each item, but I'm hoping for something more automatic, ideally pulling in a os-native translated context menu.


I suggest using tr. tr

0

精彩评论

暂无评论...
验证码 换一张
取 消