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

QMenus with a layout and widgets are no longer shown

    XMLWordPrintable

Details

    • Linux/Wayland
    • 7ffa6f1dd (dev), c78963023 (6.9), e8d28ae00 (6.8)

    Description

      In order to display custom popups that behave like QMenus but have different contents, it used to be possible to add widgets to a QMenu the normal way (i.e. within a layout). This no longer works in Qt 6.8.3, likely because of this commit:

      https://github.com/qt/qtbase/commit/353ce5344fbde5a6cecbdd2c131e1cf0f4b7f383

      Wrapping the content in a QWidgetAction works, but this requires changes to application code.

      See also https://github.com/longturn/freeciv21/pull/2630

      Attachments

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

        Activity

          People

            vhilshei Volker Hilsheimer
            louis94 Louis Moureaux
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes