Kazuto_Ute
Kazuto_Ute

Reputation: 797

How to hide selection handles on QtQuickControls2 TextField?

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.

Upvotes: 0

Views: 461

Answers (1)

SkySoft
SkySoft

Reputation: 193

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

Upvotes: 2

Related Questions