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

Context menu within popup widgets are not working

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 6.8.2
    • None
    • Python 3.13 with PySide6 6.8.2.1
    • Windows

    Description

      Context menus are not working for any child widgets within a popup widget. The issue occurs for standard widgets like QTextEdit and custom widgets that override the "contextMenuEvent" method.

      I've attached a simple Python script that uses PySide6 to demonstrate the issue. Clicking the "Popup" button will popup a widget with a QTextEdit field. Right-clicking within the QTextEdit widget does not display the standard text edit context menu.

      It worked fine in Qt 6.7, but does not work with Qt 6.8.

      Attachments

        1. context_menu_bug.cpp
          1 kB
          Farshid Lashkari
        2. context_menu_bug.py
          1 kB
          Farshid Lashkari
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            flashk Farshid Lashkari
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes