Qt Widget QMenu will only use correct color if the QML Qt Lab Platform Menu was loaded.
This is a Windows 11-only issue.
If developer create a regular Qt Widget project with QMenu, whatever the QMenu is a context menu or a QMenuBar menu, it will always using a incorrect color palette, with black text on deep blue background, and gray background:
If user adds a QQmlApplicationEngine instance and add a MenuBar and any Menu entry from Qt.labs.platform, even if the QML part is not visible, the QtWidget window will now have its correct menu color palette:
the sample code:
See the attached project (qtwidget-menubug.zip) for full code to reproduce this issue.