SUMMARY On Plasma Mobile, qmlkonsole does not seem to hide the keyboard when pressing the keyboard button. Instead, it seems as though the keyboard is killed, and immediately respawned. STEPS TO REPRODUCE 1. Open qmlkonsole 2. Open virtual-keyboard inside of qmlkonsole 3. Try to close the virtual keyboard using the keyboard button on the bottom toolbar, (not using the v arrow on the navigation bar) OBSERVED RESULT The keyboard blinks, as though being killed/respawned perhaps. Ultimately, it is not hidden EXPECTED RESULT The keyboard is toggled away. Pressing the button again once the keyboard is gone would bring it back. Pressing the button while the keyboard is visible would make it hidden SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: Arch Linux ARM Danctnix for Pinephone Pro (available in About System) KDE Plasma Version: 5.26.1 KDE Frameworks Version: 5.99.0 Qt Version: 5.15.6 ADDITIONAL INFORMATION qmlkonsole 22.09-1
Hmm, this might be a KWin bug, since this had worked at some point. The app currently calls Qt.inputMethod.hide(), which seems to hide it, and then immediately restore it.
What happens in my experience (testing on an PinePhone) is that it results in button being "clicked" 2 times: once when you press the button (by putting the finger down on the screen), and once when you release it (by pulling the finger up away from the screen). You can see the effect by doing it slowly, not quickly tapping the button. Consequently, if you press the button (which will hide the keyboard) and then drag your finger away from the button area (while still keeping it on the screen) before releasing, the keyboard will stay hidden.