0

I use QtVirtualKeyboard in my QML app and as a result selection handles appear whenever some text is selected in a TextField:

enter image description here

Is there any way to hide these handles? Nothing in TextField or TextInput docs mention anything about this.

Kazuto_Ute
  • 679
  • 6
  • 20
  • Is this the same as your [previous question](https://stackoverflow.com/questions/65190871/how-to-enable-textfield-selection-handlers-with-qtvirtualkeyboard-on-a-qquickwid)? – JarMan Dec 16 '20 at 13:06
  • @JarMan the previous question was asking how to make the handles work but since I can't seem to find an answer, I'm asking now how to remove them completely. Sorry for any confusion. – Kazuto_Ute Dec 16 '20 at 20:01

1 Answers1

2

You can hide the handle by setting the InputMethodHint flag in the TextField to Qt.ImhNoTextHandles. That should get rid of the handle. ref https://doc.qt.io/qt-5/qt.html

SkySoft
  • 133
  • 7