Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to make custom style for VirtualKeyboard

How to make custom style for VirtualKeyboard

Scheduled Pinned Locked Moved Solved Mobile and Embedded
7 Posts 3 Posters 7.5k 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.
  • S Offline
    S Offline
    sharath
    wrote on last edited by
    #1

    Hi all,

    I want to make custom style for Virtual keyboard to hide the Handwriting panel button, British English from space panel,resize the key panels, height and width of keyboard.

    So i have followed these links given below,

    https://stackoverflow.com/questions/48020896/remove-british-english-in-virtual-keyboard-qml
    https://stackoverflow.com/questions/48592098/qt-virtual-keyboard-custom-style
    https://doc.qt.io/qt-5/technical-guide.html

    So i have followed all the steps which are there in qt documentation(Technical guide).
    In main.cpp:
    qputenv("QT_IM_MODULE",QByteArray("qtvirtualkeyboard"));
    qputenv("QML2_IMPORT_PATH", ":/QtQuick/VirtualKeyboard/Styles"); //this QtQuick floder is located in my project.qrc
    qputenv("QT_VIRTUALKEYBOARD_STYLE","test");//test folder contains style.qml

    After execution:
    WARNING: cannot find style "test" - fallback: "default"

    Any help would be appreciated.

    Thanks

    raven-worxR 1 Reply Last reply
    0
    • S sharath

      Hi all,

      I want to make custom style for Virtual keyboard to hide the Handwriting panel button, British English from space panel,resize the key panels, height and width of keyboard.

      So i have followed these links given below,

      https://stackoverflow.com/questions/48020896/remove-british-english-in-virtual-keyboard-qml
      https://stackoverflow.com/questions/48592098/qt-virtual-keyboard-custom-style
      https://doc.qt.io/qt-5/technical-guide.html

      So i have followed all the steps which are there in qt documentation(Technical guide).
      In main.cpp:
      qputenv("QT_IM_MODULE",QByteArray("qtvirtualkeyboard"));
      qputenv("QML2_IMPORT_PATH", ":/QtQuick/VirtualKeyboard/Styles"); //this QtQuick floder is located in my project.qrc
      qputenv("QT_VIRTUALKEYBOARD_STYLE","test");//test folder contains style.qml

      After execution:
      WARNING: cannot find style "test" - fallback: "default"

      Any help would be appreciated.

      Thanks

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @sharath
      i am pretty sure you will find the answer in this thread

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      S 2 Replies Last reply
      2
      • raven-worxR raven-worx

        @sharath
        i am pretty sure you will find the answer in this thread

        S Offline
        S Offline
        sharath
        wrote on last edited by
        #3

        @raven-worx
        Thanks a lot @raven-worx , you are superb. you have given step by step. thanks once again. its working now.

        1 Reply Last reply
        0
        • raven-worxR raven-worx

          @sharath
          i am pretty sure you will find the answer in this thread

          S Offline
          S Offline
          sharath
          wrote on last edited by sharath
          #4

          hello @raven-worx , sorry for asking again, solution is working with debug mode perfectly. when the moment i run my project in release mode i will get the below run time errors and keyboard layout is coming with blank.
          file::/layouts/en_GB/digits.qml:1:1: Expected token `numeric literal'
          file::/layouts/en_GB/digits.qml:1:1: Expected a qualified name id

          Can you please help me to solve this.

          Thanks,

          jsulmJ 1 Reply Last reply
          0
          • S sharath

            hello @raven-worx , sorry for asking again, solution is working with debug mode perfectly. when the moment i run my project in release mode i will get the below run time errors and keyboard layout is coming with blank.
            file::/layouts/en_GB/digits.qml:1:1: Expected token `numeric literal'
            file::/layouts/en_GB/digits.qml:1:1: Expected a qualified name id

            Can you please help me to solve this.

            Thanks,

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @sharath Did you check that QML file?

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

            S 1 Reply Last reply
            0
            • jsulmJ jsulm

              @sharath Did you check that QML file?

              S Offline
              S Offline
              sharath
              wrote on last edited by
              #6

              @jsulm Yes i have checked everything is perfect. the layout is not loading at all if i run with release mode but it works with Debug mode. Its strange bug.

              S 1 Reply Last reply
              0
              • S sharath

                @jsulm Yes i have checked everything is perfect. the layout is not loading at all if i run with release mode but it works with Debug mode. Its strange bug.

                S Offline
                S Offline
                sharath
                wrote on last edited by sharath
                #7

                @jsulm sorry, i missed to add qrc to the layout path at release mode

                qputenv("QT_VIRTUALKEYBOARD_LAYOUT_PATH", ":/layouts");

                after adding "qrc:/layouts" , it has worked.

                Thanks for reply @jsulm

                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