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
Qt Code:
for (int i = 0; i < list.size(); ++i)To copy to clipboard, switch view to plain text mode
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
Qt Code:
for (int i = 0; i < list.size(); ++i)To copy to clipboard, switch view to plain text mode
What error?
I'm guessing that "<< endl" is causing you trouble.
aurora (18th October 2011)
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);
Bookmarks