Ah, you are an user that reads the docs! That's great 
Some point on your code: the enclosing brackets are not needed and if you are not going to alter resultstring (I suppose so), then avoid creating a temporary variable. Just pass it to your function. And if you put a variable to your slots, you don't have to request the value of your lineedit, because it is already send by the signal.
connect(inputLine,
SIGNAL(textChanged
(const QString &)),
this,
SLOT(convert
(const QString &)));
//...
void Dconvert
::convert(const QString &value
) {
double resultaat = value.toDouble();
// convert an alter resultaat
resultLine
->setText
(QString::number(resultaat,
'g',
10));
}
connect(inputLine,SIGNAL(textChanged(const QString &)),this,SLOT(convert(const QString &)));
//...
void Dconvert::convert(const QString &value)
{
double resultaat = value.toDouble();
// convert an alter resultaat
resultLine->setText(QString::number(resultaat, 'g',10));
}
To copy to clipboard, switch view to plain text mode
Bookmarks