for (int i = STRING.size() - 1; i > -1; i--) qDebug() << STRING.at(i);
for (const auto& s : reverse(STRING)) qDebug() << s;
C++ (Qt)template <typename C>struct reverse_wrapper { C& c_; reverse_wrapper(C & c) : c_(c) {} typename C::reverse_iterator begin() {return c_.rbegin();} typename C::reverse_iterator end() {return c_.rend(); }}; template <typename C>reverse_wrapper<C> reverse(C& c){ return reverse_wrapper<C>(c);} int main(int argc, char *argv[]){ QString sss = "1234"; for (QChar& c : reverse(sss)) { qDebug() << c; } return 0;}
for (auto it = col.rbegin(); it != col.rend(); it++) { qDebug() << *it;