QLineEdit
does not seem to have valueChanged
signal, but textChanged
(refer to the Qt documentation for complete list of supported signals).
You need to change your connect()
function call too. It should be:
connect(myLineEdit, SIGNAL(textChanged(const QString &)), this, SLOT(customSlot()));
If you need the handle the new text value in your slot, you can define it as customSlot(const QString &newValue)
instead, so your connection will look like:
connect(myLineEdit, SIGNAL(textChanged(const QString &)), this, SLOT(customSlot(const QString &)));