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

Incomplete shortcuts display in menu items

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • None
    • 6.2.2.1
    • PySide
    • None
    • MacBook Pro 14" Apple M1 Pro
      Homebrew Miniforge
      Python 3.9.7
      PySide 6.2.2.1
    • macOS

    Description

      The menu items do not show the right shortcut with all the modifiers (⌘ N, ⌘ O, and ⌘ S in the example), but just the last character: see the attached screenshot.

      In the code, generated with pyside6-uic form the qtdesigner interface the menu item was registered with:

       

      self.action_open.setText(QCoreApplication.translate("MainWindow", u"&Open", None))
      self.action_open.setShortcut(QCoreApplication.translate("MainWindow", u"Ctrl+O", None))

       
      I also tried with a MWE (unfortunately thrown away, but I can reconstruct it if needed) creating the menu items directly from the code (i.e., without the uic translation) but the result is the same. The same happens also if I switch from PySide6 to PyQt6.

       

      if it can be helpful, when I click on the menubar for opening the File menu the following SVG error is reported in the log (with CORESVG_VERBOSE=1).

       

      Unhandled operator '.'
      Unhandled operator '1'
      Unhandled operator '7'
      Unhandled operator '9'
      ...
      C/c command was given the wrong number of points.
      

       

      Attachments

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

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            luca.digaspero Luca Di Gaspero
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes