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. How to disable others languages while building qtvirtualkeyboard
Forum Updated to NodeBB v4.3 + New Features

How to disable others languages while building qtvirtualkeyboard

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 4 Posters 685 Views 1 Watching
  • 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.
  • VevinlongV Offline
    VevinlongV Offline
    Vevinlong
    wrote on last edited by
    #1

    Dev environment

    Windows 10 64bit 19042.870
    Qt 5.12.8(10) and Qt5.15.2

    I'm trying to build qtvirtualkeyboard, and I just need English and Simple Chinese, I configurate it as CONFIG+="lang-en_US lang-zh_CN", it works well on Qt5.10.1. But since I use Qt5.12.8(orQt5.12.10),even Qt5.15.2, it can not work well, it always shows others languages such as:Japanese,Korean, Thai language, Chinese Traditional, like this:
    dbf88e52-165d-41df-bd90-86f20bd656c3-image.png
    I'm wondering how to disable the 4 languages. I've tried both CONFIG-="lang-ja_JP lang-ko_KR lang-zh_TW lang-th_TH" and CONFIG-="openwnn hangul tcime zhuyin cangjie thai" ,but it is till not work.
    Do you guys have any idea?

    6 D 2 Replies Last reply
    0
    • VevinlongV Vevinlong

      Dev environment

      Windows 10 64bit 19042.870
      Qt 5.12.8(10) and Qt5.15.2

      I'm trying to build qtvirtualkeyboard, and I just need English and Simple Chinese, I configurate it as CONFIG+="lang-en_US lang-zh_CN", it works well on Qt5.10.1. But since I use Qt5.12.8(orQt5.12.10),even Qt5.15.2, it can not work well, it always shows others languages such as:Japanese,Korean, Thai language, Chinese Traditional, like this:
      dbf88e52-165d-41df-bd90-86f20bd656c3-image.png
      I'm wondering how to disable the 4 languages. I've tried both CONFIG-="lang-ja_JP lang-ko_KR lang-zh_TW lang-th_TH" and CONFIG-="openwnn hangul tcime zhuyin cangjie thai" ,but it is till not work.
      Do you guys have any idea?

      6 Offline
      6 Offline
      6057
      wrote on last edited by
      #2

      @Vevinlong I also encountered the same situation as you, so I had to use the old version back

      1 Reply Last reply
      0
      • VevinlongV Vevinlong

        Dev environment

        Windows 10 64bit 19042.870
        Qt 5.12.8(10) and Qt5.15.2

        I'm trying to build qtvirtualkeyboard, and I just need English and Simple Chinese, I configurate it as CONFIG+="lang-en_US lang-zh_CN", it works well on Qt5.10.1. But since I use Qt5.12.8(orQt5.12.10),even Qt5.15.2, it can not work well, it always shows others languages such as:Japanese,Korean, Thai language, Chinese Traditional, like this:
        dbf88e52-165d-41df-bd90-86f20bd656c3-image.png
        I'm wondering how to disable the 4 languages. I've tried both CONFIG-="lang-ja_JP lang-ko_KR lang-zh_TW lang-th_TH" and CONFIG-="openwnn hangul tcime zhuyin cangjie thai" ,but it is till not work.
        Do you guys have any idea?

        D Offline
        D Offline
        duojiaoyutouteng
        wrote on last edited by
        #3

        @Vevinlong In qml I can customize the list of languages, and I'm not sure if I can do something similar with qweight。
        6db83d44-ed51-4d5d-bad7-fe6f3014e3c7-image.png
        2344c6ac-6fa9-42dc-b67c-c75b019a2145-image.png
        ee271356-9a8b-48d5-94c7-625eeae5c46b-image.png
        The effect is as follows:
        200c6c4a-72c5-408c-b87a-798a508a42a9-image.png

        L 1 Reply Last reply
        0
        • D duojiaoyutouteng

          @Vevinlong In qml I can customize the list of languages, and I'm not sure if I can do something similar with qweight。
          6db83d44-ed51-4d5d-bad7-fe6f3014e3c7-image.png
          2344c6ac-6fa9-42dc-b67c-c75b019a2145-image.png
          ee271356-9a8b-48d5-94c7-625eeae5c46b-image.png
          The effect is as follows:
          200c6c4a-72c5-408c-b87a-798a508a42a9-image.png

          L Offline
          L Offline
          lemons
          wrote on last edited by
          #4

          Simply set the active locales of the keyboard:

          InputPanel {
              id: keyboard
              Component.onCompleted: {
                  VirtualKeyboardSettings.activeLocales = ["en_US", "zh_CN"]
              }
          }
          
          1 Reply Last reply
          1

          • Login

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