[SOLVED] Remove entire QStringList
-
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!
-
Use the clear() member function of QList.
-
That's it, haven't seen the wood for the trees. Thx!