I try to do the following:
QList a; foreach(QString& s, a) { s += \"s\"; }
Which looks like it should be legitimate but
I believe Qt's foreach takes a temporary copy of the original collection before iterating over it, therefore it wouldn't make any sense to have a non-const reference as modifying the temporary copy it would have no effect.