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.)
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:
- pyside2-rcc.exe -o style_rc.py style.qrc
- 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
- is duplicated by
-
QTBUG-84726 MenuBar font assignment causes text elision on Menu titles
- Closed