I need help in populating a combobox from an array which holds the data that came from a text file, ive already check that the array String had really got the data, the problem is that i cannot populate the combo box from the array.
std::string String[10];
std::string str,tmp;
std::ifstream ifs;
int y=0;
ifs.open("file.txt);
while (!ifs.eof())
{
getline(ifs, str, '\n');
String[y]=str;
y++;
}
ifs.close();
ui->Destination->addItems(String);
This is what ive got so far....