Unsolved A way to know the current element edited on QGridLayout?
-
Hello, a simply question. When we have a QLienEdir matrix, like the image below shows,
http://postimg.org/image/jwgv4esmp/
Exist a way to know the position in grid, of the current element edited? Or we have to connect 100 signals and 100 slots in a 100x100 matrix
my idea is connect all to one slot and decide there, which signal corresponds in a particular string matrix
like always, any ideas or suggestions are welcome
thanks in advance.
Greetings -
Hi
You can use
http://doc.qt.io/qt-5/qsignalmapper.html#detailsAlso, you can connect many signals to same slot.
in the slot u can use the sender() function
to know which widget was the signal sender.While you can ask Which widget has focus, the correct way is
to use signals.