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

Context menu doesn't show when the QWidget is within a Qt::WindowType::Popup

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.7, 6.8
    • None
    • All, macOS, Windows

    Description

      Edit: The bug happens for all widgets within a QWidget that has the flag Qt::WindowType::Popup.

      QLineEdit's context menu does not show when right-clicking when the QLineEdit is a child of another QWidget that has Qt::WindowType::Popup set to true.

      Whereas other menus (e.g. a QMenu for a QPushButton) open correctly.

      See the attached project. It contains a basic window that displays a QPushButton, that opens a popup, with a QLineEdit inside. Try right-clicking.

      Attachments

        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
            oclero Olivier Cléro
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes