Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Ampersand on text not working in windows version of Qt



  • I use the "&" in some widgets to enable alt key. I noticed when running the code in Windows 7 I don't see the underline in the character and the alt key doesn't trigger the widget. The exact same code works in Linux.

    Has anyone else seen this? Is it a problem on a particular Qt release? Is there a fix?


  • Lifetime Qt Champion

    Hi,

    You should give the Qt version you are currently using.

    You should also have a look at the "bug report system":http://bugreports.qt-project.org to see if it's something.

    To ensure it might be a bug, please create a minimal compilable example application that shows the difference of behavior.



  • Sorry, I should have mentioned that this is python/pyside. A compilable testcase is NA.

    Qt version is 4.8.3.


  • Lifetime Qt Champion

    You should anyway try to create a minimal application. That way you can determine if it's a Qt bug or a PySide thing.

    Also, another thing to try is a more recent version of Qt like 4.8.6 is around the corner.


Log in to reply