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

Widget in QWidgetAction disappears on second opening on macOS

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.10.0
    • 5.7.1, 5.8.0, 5.9.0, 5.9.1, 5.9.2, 5.10.0 Alpha
    • None
    • macOS

    Description

      If I put a widget like QPushButton via QWidgetAction into the context menu of a menu bar icon on macOS, the button will be shown on the first time I open the menu, but next time it will be invisible until I manually click on it. Obviously if I open the menu again, the button will be hidden as before.

      I have tested this on almost all Qt version from 5.7.1 and all of them seem to be affected.

      The OS was macOS 10.13.

      Steps to reproduce:

      • Download and compile the attached test application
      • Run the application, a green Qt logo will appear on the menu bar
      • Click on the small Qt logo on the menu bar, the context menu will appear with the button in it
      • Close the context menu by clicking somewhere else
      • Open the context menu again by clicking on the menu bar icon

      Expected: the button is visible

      Actual: the button is invisible and shows only when you click on it

      Attachments

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

        Activity

          People

            tpochep Timur Pocheptsov
            tomikaa87qt Tamas Karpati
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes