Quote Originally Posted by neverlander View Post
I take the input from user by line edit.
In that case you have to connect to the QLineEdit::textChanged() or some other QLineEdit signal and get rid of that loop.