[Qt-interest] QLineEdit - textChanged signal - determine old value
Colin S. Miller
no-spam-thank-you at csmiller.demon.co.uk
Mon Sep 14 14:18:01 CEST 2009
Hi,
In the slot handling QLineEdit::textChanged,
is there any way to determine the previous value of the QLineEdit control
prior to the signal being fired?
I tried
QLineEdit control = dynamic_cast<const QLineEdit*>(sender());
std::cout << "Old value is: " << control->text() << std::endl;
but the value had already been changed.
TIA,
Colin S. Miller
--
Replace the obvious in my email address with the first three letters of the hostname to reply.
More information about the Qt-interest-old
mailing list