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. Does VirtualKeyboard offer any way to have a dark transparent overlay surrounding the TextField that activates the inputPanel?
Forum Updated to NodeBB v4.3 + New Features

Does VirtualKeyboard offer any way to have a dark transparent overlay surrounding the TextField that activates the inputPanel?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
qmlvirtualkeyboardoverlayinput panel
2 Posts 2 Posters 681 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.
  • R Offline
    R Offline
    red.green
    wrote on 25 Jun 2019, 08:01 last edited by red.green
    #1

    I'm very new to QML. I have a TextField which activates VirtualKeyboard when it has the focus. I would like to have a dark transparent overlay surrounding this TextField which only appears when the VirtualKeyboard is activated by the TextField. Is there any built-in method in VirtualKeyboard do accomplish this?

    Thanks

    J 1 Reply Last reply 25 Jun 2019, 08:12
    0
    • R red.green
      25 Jun 2019, 08:01

      I'm very new to QML. I have a TextField which activates VirtualKeyboard when it has the focus. I would like to have a dark transparent overlay surrounding this TextField which only appears when the VirtualKeyboard is activated by the TextField. Is there any built-in method in VirtualKeyboard do accomplish this?

      Thanks

      J Online
      J Online
      J.Hilk
      Moderators
      wrote on 25 Jun 2019, 08:12 last edited by
      #2

      @red.green
      hi, I'm unfamiliar with the virtual keyboard.

      But I have the following idea.

      inside your TextField, you listend to onActiveFocusChanged if that becomes true, that the virtual keyboard should be called forth.

      On you can than listen to the editingFinished signal and force the focus on the parent. to guarantee that the active focus is really gone after editing

      Item{//arbitary parent
      TextField{
           onActiveFocusChanged: if(activeFocus) //do stuff
           onEditingFinished: parent.forceActiveFocus()
      }
      }
      

      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      1 Reply Last reply
      0

      2/2

      25 Jun 2019, 08:12

      • Login

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