Get clicked qtwidget object...
Unsolved
General and Desktop
-
Hi!
how can i get the clicked qtwidget from my runtime application?
Ej:
I have 3 QLabels on my form, when i click on the QLabel 2, and then press W,A,S,D keys i can move it..... if i click QLabel 1, and then press W, A, S,D keys then it moves QLabel 1.... and so... I know how to move widgets, what i want is to get the pointer of the selected widget so in my code i can manipulate it with QKeyEvents to move.. tipically is select and move..thanks
-
@U7Development Use https://doc.qt.io/qt-5/qwidget.html#childAt if you have cursor coordinates.