gt.beta2
5th February 2009, 21:35
Hi!
I have some lineEdits in a form among other:
lineEdit1, lineEdit2, lineEdit3 ...
I implemented a member function to be executed when any of them are edited:
on_lineEdit1_textChanged(), on_lineEdit2_textChanged(), on_lineEdit3_textChanged() ...
They all have the same code, because the textChanged event validates the content of all lineEdits in that set and performs some calculations with their content if all are valid.
The question is if there is a way to control the "textChanged" in a set of lineEdits without having to do what i "tried:rolleyes:" to describe above?
Thanks in advance.
I have some lineEdits in a form among other:
lineEdit1, lineEdit2, lineEdit3 ...
I implemented a member function to be executed when any of them are edited:
on_lineEdit1_textChanged(), on_lineEdit2_textChanged(), on_lineEdit3_textChanged() ...
They all have the same code, because the textChanged event validates the content of all lineEdits in that set and performs some calculations with their content if all are valid.
The question is if there is a way to control the "textChanged" in a set of lineEdits without having to do what i "tried:rolleyes:" to describe above?
Thanks in advance.