Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Questions to Virtual Keyboard

Questions to Virtual Keyboard

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 316 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.
  • H Offline
    H Offline
    Huskydrive
    wrote on last edited by
    #1

    Hello Community,
    i have different questions about the virtual Keyboard.
    I have all languages installed and can toggle with the language button through all languages.
    But it starts everytime with english. In the Application the user is able to change the application language at runtime.
    This is working, but is there a way to change then also the virtual Keyboard, that it starting with this selected language?

    And the second question is. Is there a way to find out which language is active atm for the Virtual keyboard.
    So when the user doesn't want to type in this language and toggle to another language is it then possible to find out which language is actually set on the virtual keyboard?

    Thanks for your suggesstions.

    Best regards,
    Julian

    1 Reply Last reply
    0
    • R Offline
      R Offline
      rgilio
      wrote on last edited by
      #2

      You can change the starting language by setting the QLocale of the application before it loads in your main function.

      1. QLocale::setDefault(QLocale::Language);
      2. QApplication a(argc,argv);

      From here the application should now be loaded with your desired language and the VirtualKeyboard should default to it when it initially pops up.

      1 Reply Last reply
      0

      • Login

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