1. I thought 'foreach" was a C++ "feature" - in QT doc they call it macro "Q_FOREACH" -
not sure which way is up...
2. The syntax
foreach(QString str, StringArray[MAX_ARRAY])
is the one which "assigns" INDIVIDUAL char to str
I need the entire string of specific array , not the char
Irregardless if it is a macro or not
what is correct syntax to get the entire string USING "foreach" ?
From the description - it is an iterator and the object of iteration is vaguely described -
sort of "automatic". .
If I iterate QString and expect QString -
one usage gives me full string - from start to last new line
and another gives me INDIVIDUAL characters- one by one.
What am I doing different ?
modified 30-Aug-22 1:48am.