I am noob in QT as well as C++. Rite now I am trying to display value of iter->second but its not working. Here is the small piece of code
multimap<string, string>::iterator iter;
iter = findFile.find(fileToFind);
if ( iter != findFile.end() )
{
do
{
string temp = iter->second;
str.fromStdString(temp);
ui->textBrowser->setText(str);;
cout << iter->first << " [DIR] " << iter->second << endl;
iter++;
}while (iter != findFile.upper_bound ( fileToFind ) );
}
multimap<string, string>::iterator iter;
iter = findFile.find(fileToFind);
if ( iter != findFile.end() )
{
do
{
string temp = iter->second;
QString str;
str.fromStdString(temp);
ui->textBrowser->setText(str);;
cout << iter->first << " [DIR] " << iter->second << endl;
iter++;
}while (iter != findFile.upper_bound ( fileToFind ) );
}
To copy to clipboard, switch view to plain text mode
Please help me out
Bookmarks