Ich habe folgendes Problem:
Ich habe ein QLineEdit und würde das gerne connecten, aber er will einfach nicht, was ich nicht verstehen kann, da eigentlich alles drin ist, was er braucht.
Bastele in meinem Mainwidget folgendes:
Code: Alles auswählen
QLineEdit * lineedit_3 = new QLineEdit(this);
connect( lineedit_3, SIGNAL( textEdited (QString) ), rt, SLOT( getdata(QString, 3) ) );Code: Alles auswählen
void RThread::getdata(QString input, int typ)
{
double zahl = input.toDouble();
if ( typ == 1 ) x[1] = zahl;
else if ( typ == 2 ) x[3] = zahl;
else if ( typ == 3 ) u[0] = zahl;
}