I'm using Qt 4.5 and im working with a QList<QStringList>
which is a list of string list.
Now I want to replace one string inside one stringList but with it seems unusual to type. I have found the following way of doing it and was wondering if it is ok:
QList <QStringList> pDataList;
pDataList[listIndex].replace(QStringIndex, newString);
Now, I'm not worried about the syntax, but I want to know if pDataList
's pointers is adjascent in memory so that it is okay to use []
. Is there another way to do it?