Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-2959

Taborder from QWidgetAction to QMenu is lost

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 6.7.3
    • PySide
    • None
    • Windows

    Description

      We are using PySide6 for some internal applications and noticed the following issue:

      When creating a ContextMenu(QMenu) and using a Widget with QLineEdits as an QAction in that ContextMenu, then QWidgetAction is required to achieve this.

      However, running the Widget with QLineEdits allows the user to press "Tab" to jump between the QLinEdits fields. This is not possible anymore as soon as this Widget is part of a ContextMenu.

      I have a reproducable example attached. It is a Mainwindow with 3 QLabels and 3 QLinedits. You can tab between the QLineEdits. It also has a contextmenu that pops up when you right-click on the labels. The contextmenu has the same layout as the MainWindow (3 QLabels and 3 QLinedits) but you cannot tab anymore.

      From what I can read from the documentation QWidgetAction should ensure the same behaviour of the Widget as an QAction. So I would expect the tabbing to work as part of the ContextMenu

      Attachments

        1. test_tabbing.py
          3 kB
          Cajetan Koschat
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            cajetan Cajetan Koschat
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes