Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Change input keyboard language / layout
Servers for Qt installer are currently down

Change input keyboard language / layout

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 2 Posters 298 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jon Levanon
    wrote on 16 Aug 2021, 09:14 last edited by Jon Levanon
    #1

    Hi, using Qt 5.10 on ubunu. Trying to make sure users are on one language (english) and not the other (I can assume there are only two, and english is needed). Couldn't find a way to get the current keyboard layout/language, QInputMethod's locale always return the default english even if I switched to the other language with start+space.
    Any advice?

    Thanks

    J 1 Reply Last reply 16 Aug 2021, 09:22
    0
    • J Jon Levanon
      16 Aug 2021, 09:14

      Hi, using Qt 5.10 on ubunu. Trying to make sure users are on one language (english) and not the other (I can assume there are only two, and english is needed). Couldn't find a way to get the current keyboard layout/language, QInputMethod's locale always return the default english even if I switched to the other language with start+space.
      Any advice?

      Thanks

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 16 Aug 2021, 09:22 last edited by
      #2

      @Jon-Levanon I'm not sure I understand.
      Are you talking about Qt Virtual Keyboard or do you want to change the keyboard layout in the system (if so: why?)?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      J 1 Reply Last reply 16 Aug 2021, 09:33
      0
      • J jsulm
        16 Aug 2021, 09:22

        @Jon-Levanon I'm not sure I understand.
        Are you talking about Qt Virtual Keyboard or do you want to change the keyboard layout in the system (if so: why?)?

        J Offline
        J Offline
        Jon Levanon
        wrote on 16 Aug 2021, 09:33 last edited by
        #3

        @jsulm Change keyboard layout in the system. We need to verify it is on english in order for our app to understand the input it gets...

        J 1 Reply Last reply 16 Aug 2021, 09:38
        0
        • J Jon Levanon
          16 Aug 2021, 09:33

          @jsulm Change keyboard layout in the system. We need to verify it is on english in order for our app to understand the input it gets...

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 16 Aug 2021, 09:38 last edited by
          #4

          @Jon-Levanon Not sure why you need to set specific keyboard layout to understand user input?
          If user inputs Z then it is Z doesn't matter which exact key on the keyboard is assigned to Z in the current layout.
          As user I would not line an application which changes my keyboard layout...

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • J Offline
            J Offline
            Jon Levanon
            wrote on 16 Aug 2021, 09:46 last edited by
            #5

            Well if you start the app on a different layout (in our case, a different language), you might not notice it and the we would expect 'a' but get a ש. This is problematic. Maybe my phrasing wasn't right, it's more about the language and not the layout.

            1 Reply Last reply
            0

            1/5

            16 Aug 2021, 09:14

            • Login

            • Login or register to search.
            1 out of 5
            • First post
              1/5
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved