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

Imagine theme menu problems in Windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.13.2, 5.14.1
    • Windows 10, Python 3.8.2, downloaded from python.org;
      (it works fine on Mac and Linux.)
    • Windows

    Description

      I made a simple package to show the problem in Windows only. (It works fine on Macs and Lunux.)

      https://github.com/jmitrevs/bugreport

      It is a simple QtQuick application with python that just opens a window that has a File menu selection, with just the quit option. I also added a simple configuration, qtquickcontrols2.conf, which contains:

      [Controls]
       Style=Imagine
      
      [Imagine\Palette]
       ButtonText=Black
      

      But this causes "File" and "Quit" to be replaced by "F..." and "Q..." if I display them with qsTr("&File"). Actually, this is the cause with any function. I replaced qsTr by

      function myQsTr(foo) {
         return foo;
      }
      

      but I still see "F..." and "Q...". So it seems like the function call mechanism messes things up. In the final version I removed the function call around "Quit" and now "Quit" displays fine.

      The steps to run are:

      1. pyside2-rcc.exe -o style_rc.py style.qrc
      2. python main.py

      For simplicity, I also committed the resulting style_rc.py.

      I had this as a bug in the Qt for Python area but was told it was not related to Python so I am reposting it here.

      Attachments

        Issue Links

          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
              jmitrevs Jovan Mitrevski
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes