C++ (Qt)void MyClass::textChanged(const QString &text){ double value = text.toDouble(); buttonOk->setEnabled(value >= 0 && value <= 90);}...connect(lineEdit, SIGNAL(textChanged(const QString &)), SLOT(textChanged(const QString &)));