[Interest] Inconsistencies in MenuBar behaviour on Windows (QtQuick.Controls vs Qt.labs.platform)
Nuno Santos
nuno.santos at imaginando.pt
Thu Dec 4 16:12:35 CET 2025
Hi,
I’m trying to uniformize the use of MenuBar since nowadays it is present in QtQuickControls and is not an experimental feature anymore.
However, on Windows it behaves very differently. When using the labs.platform version, the MenuBar really looks like a menu bar, the very same height and look and feel encountered on QtCreator itself.
However, if I use the QtQuickControls version, it gets higher in height, and the menu items have rounded corners. And the worst of all, it does not get into scene properly if the root element is not a window. In my case I have a root basic root element that is loaded by a QQuickView.
In macOS I don’t have problems with any version.
And on iOS, the labs platform version will not trigger the keyboard shortcuts.
Is this a known limitation of the MenuBar that was integrated into QtQuick.Controls?
It feels that I will need to keep use of the labs.platform version on windows and the other one for macOS and iOS? I really don’t like to have this kind of exceptions because this is the primary goal of Qt.
I’m using the Qt 6.8.X LTS version of Qt. (I’ve tested with 6.8.4 and 6.8.5)
Has anyone had the same pain or behaviour? Maybe I’m missing something?
Thanks in advance!!
Best regards,
Nuno
More information about the Interest
mailing list