No menubar for QtQuick.Controls based applications

Bug #1323853 reported by Mathias Hasselmann on 2014-05-27
146
This bug affects 29 people
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 QGuiApplicationPrivate::platformTheme()->createPlatformMenuBar(); instead of QMenuBar.

Mathias Hasselmann (hasselmm) wrote :
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.

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
Daniel McInnes (d-h-mcinnes) wrote :

Is there a patch or a workaround for this issue?

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

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?

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  Edit
Everyone can see this information.

Other bug subscribers