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

The algorithm to generate QAction::toolTip() from text() doesn't work for the Chinese locale

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.6.2
    • GUI: Menus
    • None
    • Linux/Wayland

    Description

      When tooltip is not set for a QAction, its text is used (seemingly by remove "&"). However, this doesn't work in Chinese, because "Open &Menu" would be "打开菜单(&M)", so after conversion it's "打开菜单(M)", with an extra "(M)".

      In Chinese locale, probably a regex substitution of "s/^(.*)(&[A-Za-z])(…)?$/\1\3/" is needed.

      Attachments

        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
            genericity Jin Liu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes