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

QGuiApplication::inputMethod()->locale() reports the wrong locale

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.4.2, 6.8
    • None
    • Linux/Wayland, Linux/X11

    Description

      With Ubuntu 24.04 and Ubuntu 22.04 the Qt QGuiApplication::inputMethod()->locale()
      returns the ibus input locale the same you get with

      ibus engine

      Under the Ubuntu Session and also Xfce this does not follow the setting you do via the Ubuntu desktop environment which mainly goes to

      /org/gnome/desktop/input-sources/mru-sources(sources) and can also be accessed via X11/XWayland and XkbGetNames() and friends. 

      So we have the situation that for instance the German "ö" is displayed correctly in text based editors, but it is broken for short cuts, because the US keyboard is assumed returned as it is returned by QGuiApplication::inputMethod()->locale()

      https://github.com/mixxxdj/mixxx/issues/14838

      Expexted behaviour: 

      QGuiApplication::inputMethod()->locale() shall report the layout that is used by the on screen keyboard.  

       

      The Cinnamon and the KDE session seems to be not affected. On these systems ibus engine reflects the used keyboard layout. 

      Attachments

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

        Activity

          People

            liaqi Liang Qi
            daschuer Daniel Schürmann
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes