PDA

View Full Version : Text before editting on QLineEdit



^NyAw^
8th September 2008, 16:23
Hi,

I have a QLineEdit with the Signal "editFinished" connected to a Slot. Into the Slot I want to get the text that the QLineEdit was containing before editting it and the new editted text. Is there anyway to get the text before editting it?

Thanks,

spirit
8th September 2008, 16:36
you can try to catch


void QLineEdit::textEdited ( const QString & text )

then do


void QLineEdit::undo ()

then get the text and then do


void QLineEdit::redo ()


maybe there is better way to realize this approach. ;)

^NyAw^
8th September 2008, 16:51
Hi,

I have used a variable to sotre actual values.

Thanks,