How I can to paste text at cursor position of focused input element?
Solved
QML and Qt Quick
-
wrote on 15 Nov 2020, 21:29 last edited by
-
I have a GridView with ToolButtons (kind of keyboard). I want a click on a symbol to copy it to the cursor position regardless of which input element it is in (based on focus)
Thank you in advance!@maratoriy You can iterate over https://doc.qt.io/qt-5/qobject.html#children and check which child has focus using https://doc.qt.io/qt-5/qwidget.html#focus-prop
-
@maratoriy You can iterate over https://doc.qt.io/qt-5/qobject.html#children and check which child has focus using https://doc.qt.io/qt-5/qwidget.html#focus-prop
1/3