[Qt-interest] QLineEdit - textChanged signal - determine old value

Ender EREL erelender at yahoo.com
Mon Sep 14 14:29:01 CEST 2009


You can keep an internal QString storing the value whenever the text 
changes. You can use that value to get the last text.

void textChanged(const QString& newText)
{
     if(myOldText != newText)
     {//Do Stuff
     }

     myOldText = newText;
     return;
}



-- 
Ender EREL



More information about the Qt-interest-old mailing list