No menubar for QtQuick.Controls based applications
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | appmenu-qt5 |
Medium
|
Łukasz Zemczak | ||
| | appmenu-qt5 (Ubuntu) |
Medium
|
Łukasz Zemczak | ||
Bug Description
For QtQuick.Controls based applications no menubars are shown. The following message is printed to the console instead:
appmenu-qt: handleReparent 128 The given QWindow has no QMenuBar assigned
Apparently this is because QtQuick.Controls menus are built upon QQuickMenuBar and QGuiApplication
| Mathias Hasselmann (hasselmm) wrote : | #1 |
| Lars Schütze (lschuetze) wrote : | #2 |
| Launchpad Janitor (janitor) wrote : | #3 |
Status changed to 'Confirmed' because the bug affects multiple users.
| Changed in appmenu-qt5 (Ubuntu): | |
| status: | New → Confirmed |
| Changed in appmenu-qt5 (Ubuntu): | |
| assignee: | nobody → Łukasz Zemczak (sil2100) |
| Changed in appmenu-qt5: | |
| assignee: | nobody → Łukasz Zemczak (sil2100) |
| Changed in appmenu-qt5 (Ubuntu): | |
| status: | Confirmed → Triaged |
| Changed in appmenu-qt5: | |
| status: | New → Triaged |
| importance: | Undecided → Medium |
| Changed in appmenu-qt5 (Ubuntu): | |
| importance: | Undecided → Medium |
| Daniel McInnes (d-h-mcinnes) wrote : | #4 |
Is there a patch or a workaround for this issue?
| zhang sheng (langyxxl) wrote : | #5 |
ubuntu 15.04 install qtcreator from apt-get also can't show menubar
qt official site's installer doesn't have the problem
| Tobias Lausch (tobias-lausch-q) wrote : | #6 |
this issue persists on qt5.4 which comes along with ubuntu 15.04.
One cannot create menubars in qml ApplicationWindow using QtQuick 2.2 or QtQuick 2.3
Is there any possible workaround?
| Kai Michaelis (seu) wrote : | #7 |
Setting the UBUNTU_MENUPROXY environment variable to the empty string helps to work around the bug: http://

Also for QtQuick 2.2 and Qt Quick Controls 1.1.
I am using Ubuntu 14.04. There are also reports in Qt Forums about this issue.