I jus debugged this piece of code and the compiler said no signal generated..
here topic is QlineEdit and i wanna see if the line changes so i can save the values of line to my variable...
if( connect(&topic,
SIGNAL(textChanged
(QString &)),
this,
SLOT(setText
(QString &)))) {topicValue = topic.text();}
if( connect(&date,
SIGNAL(textChanged
(QString &)),
this,
SLOT(setText
(QString &)))) {dateValue = date.text();}
if( connect(&data,
SIGNAL(textChanged
(QString &)),
this,
SLOT(setText
(QString &)))) {dataValue = data.text();
qDebug() << dateValue;
}
if( connect(&topic,SIGNAL(textChanged(QString &)),this,SLOT(setText(QString &))))
{topicValue = topic.text();}
if( connect(&date,SIGNAL(textChanged(QString &)),this,SLOT(setText(QString &))))
{dateValue = date.text();}
if( connect(&data,SIGNAL(textChanged(QString &)),this,SLOT(setText(QString &))))
{dataValue = data.text();
qDebug() << dateValue;
}
To copy to clipboard, switch view to plain text mode
Bookmarks