PDA

View Full Version : Putting text from QList to QLineEdit problem



"BumbleBee"
12th April 2012, 07:14
So I have this:

list << ui->dox_name->text() << ui->dox_victim_age->text() << ui->dox_whore_age->text()
<< ui->dox_location->text() << ui->dox_IP->text() << ui->dox_fb->text();
ui->text->setPlainText(list[0]);

//Where: "list" is QList<QString> and "dox_name" is a QLineEdit.

It work fine the first time,however if I want to update the "list" in runtime,the plaintext won't change.
Why?

nish
12th April 2012, 07:49
this is the code where list is updated? did you forgot to call list.clear() before filling the list again?