PDA

View Full Version : Detect change of any QLineEdit in a QGridLayout



gib
6th October 2018, 04:26
I have 21 lineEdit fields in a gridLayout within a groupBox. I want to be able to trigger a signal when any one of these fields is changed. Is there a way to detect any change in a gridLayout, or in a groupBox? Or in any lineEdit in the form?
Thanks.

gib
6th October 2018, 14:02
Since there are no signals associated with QGridLayout or QGroupBox (they are not widgets) I have adopted the brute force method of 21 signal connects to a single slot. On reflection this is the obvious way to do it, and I was just being lazy.