[SOLVED] Remove entire QStringList
-
wrote on 16 May 2011, 18:28 last edited by
Hello
How can I remove all objects of a QStringList. I tried it with a while-loop like this:
@while( myStringList[0] != NULL)
{
myStringList.removeLast();
}@I always encountered runtime errors. Compiling was no problem.
Thx for help!
-
wrote on 16 May 2011, 18:35 last edited by
Use the clear() member function of QList.
-
wrote on 16 May 2011, 20:02 last edited by
That's it, haven't seen the wood for the trees. Thx!
1/3