hi,
I'm trying to use the following code to iterate the QString List but i'm getting error.
here list is of type QStringList
Code:
for (int i = 0; i < list.size(); ++i)
Printable View
hi,
I'm trying to use the following code to iterate the QString List but i'm getting error.
here list is of type QStringList
Code:
for (int i = 0; i < list.size(); ++i)
What error?
I'm guessing that "<< endl" is causing you trouble.
Also if you put the QString at position i into another QString you don't need these conversions list.at(i).toLocal8Bit().constData() just write QString element = list.at(i);