I understand that... but i told you that is not what happens (and it didn't even convert anything to QString)...cos I want the QString to be return as long as i is less then...
And assuming that would be possible (it is not) how would you "catch" the returned values - if you call a function once and then it returns a variable number of values?
Ok, now, you can do a function that takes by reference a std::list<std::string> (it can be any container std::list is just an example) and add a QString to the QStringList for each value in the first list.
LE:
you can read more about recursion, if you want, because you have some confusion about it, and use the debugger to see exactly what it happening - you will understand that and you will improve debugging skills![]()
Bookmarks