Code: Alles auswählen
connect(this, SIGNAL(editingFinished()), this, SLOT(checkValue()));
Wenn ich hingegen
Code: Alles auswählen
connect(this, SIGNAL(textEdited(const QString &)), this, SLOT(setValueFromText (const QString &)));
Warum ?
Matthias
Code: Alles auswählen
connect(this, SIGNAL(editingFinished()), this, SLOT(checkValue()));
Code: Alles auswählen
connect(this, SIGNAL(textEdited(const QString &)), this, SLOT(setValueFromText (const QString &)));
Ggf. auch mal in qlineedit.cpp an den beiden Stellen, an denen das Signal erzeugt wird, einen Breakpoint setzen und schauen ob Du überhaupt dort ankommst.Note that if there is a validator() or inputMask() set on the line edit and enter/return is pressed, the editingFinished() signal will only be emitted if the input follows the inputMask() and the validator() returns QValidator::Acceptable.