Put a qDebug in the seText() and check if its being executed or not
and try this maybe its a logical error
if(q.length()>20)
{
ui->lineEdit->setText("test");
dialog =new Dialog();
connect(ui
->lineEdit,
SIGNAL(textChanged
(QString)), dialog,
SLOT(seText
(QString)));
dialog->show();
ui->lineEdit->setText("test1");
}
if(q.length()>20)
{
ui->lineEdit->setText("test");
dialog =new Dialog();
connect(ui->lineEdit, SIGNAL(textChanged(QString)), dialog, SLOT(seText(QString)));
dialog->show();
ui->lineEdit->setText("test1");
}
To copy to clipboard, switch view to plain text mode
it would have been really helpful and time saving if you just posted the complete code instead of parts of it every now and then...
Bookmarks