No menubar for QtQuick.Controls based applications

Bug #1323853 reported by Mathias Hasselmann
146
This bug affects 29 people
Affects Status Importance Assigned to Milestone
appmenu-qt5
Triaged
Medium
Łukasz Zemczak
appmenu-qt5 (Ubuntu)
Triaged
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 QGuiApplicationPrivate::platformTheme()->createPlatformMenuBar(); instead of QMenuBar.

Revision history for this message
Mathias Hasselmann (hasselmm) wrote :
Revision history for this message
Lars Schütze (lschuetze) wrote :

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.

Revision history for this message
Launchpad Janitor (janitor) wrote :

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
Revision history for this message
Daniel McInnes (d-h-mcinnes) wrote :

Is there a patch or a workaround for this issue?

Revision history for this message
zhang sheng (langyxxl) wrote :

ubuntu 15.04 install qtcreator from apt-get also can't show menubar

qt official site's installer doesn't have the problem

Revision history for this message
Tobias Lausch (tobias-lausch-q) wrote :

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?

Revision history for this message
Kai Michaelis (seu) wrote :

Setting the UBUNTU_MENUPROXY environment variable to the empty string helps to work around the bug: http://askubuntu.com/questions/10481/how-do-i-enable-or-disable-the-global-application-menu

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.