8

What's the difference between an object of QStringList and an Array of QStrings? I mean it seems that both behave as an array.

László Papp
  • 51,870
  • 39
  • 111
  • 135
Nixmd
  • 775
  • 5
  • 11
  • 20

1 Answers1

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