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

[Windows] QMenuBar not displayed correctly with QDialog

XMLWordPrintable

    • Windows
    • 5fc99e555 (dev)

      QMenuBar is shown more like a context menu that opens from a tool button when added to QDialog. The image Qt6_8_menu.jpg shows this.

      The menu bar used to look like correct menu (more like the one with QMainWindow) with Qt 5.15 and Qt 6.5, but with Qt 6.8 this has changed. The old behavior is shown in Qt6_5_menu.jpg.

      Widget Designer shows the menu bar correctly (attached image designer.jpg)

      (Adding a container widget to the dialog and placing the menu bar there shows the menu bar, but it’s visually different.)

      Attached example shows the issue.

        1. QTBUG-139227.zip
          3 kB
        2. Qt6_8_menu.jpg
          Qt6_8_menu.jpg
          10 kB
        3. Qt6_5_menu.jpg
          Qt6_5_menu.jpg
          10 kB
        4. designer.jpg
          designer.jpg
          185 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            tiheikka Titta Heikkala
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes