Quote Originally Posted by RENOLD View Post
for (int i = 0; i < stringList.size(); i++)
{
if(i==stringList.size()-1)
{
lineEditBox->clear();
lineEditBox->setText(stringList.at(i));
}
}
I don't try to find nice words: This horrible. Do you understand what this code does? Do you really think you need a loop to set the last word of an array to your line edit. Also why are you clearing the edit before setting a new text? With setting a new text, line edit clears itself automatically.