Is it possible to get native menus with Qt4 on Windows 7, 64-bit?

Applications written in Qt (4) do not have their own menus when running on Windows 7, 64-bit. This is true for well-known applications such as VLC, Lyx, etc.

Qt menus do not behave like a native menu, which can be annoying. As an example, consider the screenshot below.

Qt menu example

If the mouse moves quickly along the red path, the submenu closes immediately. For native menus on Windows (and on Mac) there is a delay. This can make navigation in the menu more difficult, as they will not behave as the user expects.

Can I use my own menus in Windows instead?

+6
source share
1 answer

Qt5 has a QPA API for menus - it is used to create your own Mac menus. Most likely, it will be used on Android in the near future, and the implementation of Windows is quite possible. Backporting to Qt4 would be tricky, since support for the built-in Mac menu was achieved with #ifdefs

+1
source

Source: https://habr.com/ru/post/917520/


All Articles