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 change the Qt VirtualKeyboard InputPanel Layout?

How to change the Qt VirtualKeyboard InputPanel Layout?

Scheduled Pinned Locked Moved Solved QML and Qt Quick
4 Posts 2 Posters 3.4k 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.
  • M Offline
    M Offline
    MAthias_Va
    wrote on last edited by aha_1980
    #1

    At the moment when my Keyboard popsup it looks as lower half of the screen as a black screen and the keyboard itself in the middle! I don't like this view!! I want to change it: like removing this black background or make it transparent!!!
    I am using Qt5.10.1

    InputPanel
    {
    id:inputPanel
    y: Qt.inputMethod.visible ? parent.height -inputPanel.height : parent.height
    anchors.left: parent.left
    anchors.right: parent.right
    }
    

    What I did till now! I tried to edit the style file: /VirtualKeyboard/Styles/ as below, with no effect

    keyboardBackground: Rectangle {
        color: "transparent"
    }
    

    So I took a copy and tried to upload it like this, with no effect also

       qputenv("QT_VIRTUALKEYBOARD_STYLE_PATH","./styles")
    

    Even When I tried to edit the Inputpanel, I don't see any effect, also I put a red Rect as a backGround inside it, with no any effect!!!

    Component.onCompleted: {
        keyboard.style.keyboardBackground = null;        
        keyboard.style.selectionListBackground = null;  
              
    Rectangle {
        anchors.fill: parent.fill
        color: "red"
    }                                           
    }
    

    Any Ideas!

    S 1 Reply Last reply
    0
    • M MAthias_Va

      At the moment when my Keyboard popsup it looks as lower half of the screen as a black screen and the keyboard itself in the middle! I don't like this view!! I want to change it: like removing this black background or make it transparent!!!
      I am using Qt5.10.1

      InputPanel
      {
      id:inputPanel
      y: Qt.inputMethod.visible ? parent.height -inputPanel.height : parent.height
      anchors.left: parent.left
      anchors.right: parent.right
      }
      

      What I did till now! I tried to edit the style file: /VirtualKeyboard/Styles/ as below, with no effect

      keyboardBackground: Rectangle {
          color: "transparent"
      }
      

      So I took a copy and tried to upload it like this, with no effect also

         qputenv("QT_VIRTUALKEYBOARD_STYLE_PATH","./styles")
      

      Even When I tried to edit the Inputpanel, I don't see any effect, also I put a red Rect as a backGround inside it, with no any effect!!!

      Component.onCompleted: {
          keyboard.style.keyboardBackground = null;        
          keyboard.style.selectionListBackground = null;  
                
      Rectangle {
          anchors.fill: parent.fill
          color: "red"
      }                                           
      }
      

      Any Ideas!

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

      Hi @MAthias_Va
      You have to customize your keyboard layout and style. kindly follow the below link, i think it will help you
      https://forum.qt.io/topic/99545/how-to-make-custom-style-for-virtualkeyboard

      1 Reply Last reply
      0
      • M Offline
        M Offline
        MAthias_Va
        wrote on last edited by
        #3

        For me I was able to change the layout but not the style!!! I don't know why!!

        1 Reply Last reply
        0
        • M Offline
          M Offline
          MAthias_Va
          wrote on last edited by
          #4

          Cool, it works, for me the problem was import QtQuick.Controls 2.2, starting from 2.3 it works!!

          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