What's the difference between an object of QStringList and an Array of QStrings? I mean it seems that both behave as an array.
Asked
Active
Viewed 1.9k times
8
-
Did you [read the docs](http://harmattan-dev.nokia.com/docs/library/html/qt4/qstringlist.html)? – Mooing Duck Aug 16 '13 at 18:44
-
The difference is the same as the difference between a QStringList and a QStringList[] array. – Nikos C. Aug 16 '13 at 18:58
1 Answers
23
QStringList
is a dynamic array, meaning that it can expand/shrink as you add more/remove strings to/from it.
QString array[10];
is a fixed size array of QString
. You can't expand or shrink it.

Marco M.
- 2,956
- 2
- 29
- 22