Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-75826

QWidgetActions not showing up in menu bar (Mac)

    XMLWordPrintable

Details

    • macOS
    • a4bd4565ccd351f979507f1af3d90c61845c532c (qt/qtbase/5.12)

    Description

      On Mac, adding a QWidgetAction to the main menu during the processing of an aboutToShow() signal, cause the widget to  not show up properly  when using the native menu bar. The rendering is correct the second time the menu is shown.

      Attached is a project  to  test the issue. It is present in Qt 5.13. 

      A patch which solves the problem is proposed here:

      https://codereview.qt-project.org/#/c/261704/

      The two screenshots show the result before and after the patch is applied. The problem does not affect the menu bar if the native option is turned off.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            mgubi Massimiliano Gubinelli
            mgubi Massimiliano Gubinelli
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes