Skip to content

Instantly share code, notes, and snippets.

@rowlo
Last active January 1, 2016 23:39
Show Gist options
  • Save rowlo/8218042 to your computer and use it in GitHub Desktop.
Save rowlo/8218042 to your computer and use it in GitHub Desktop.
Reverse QList as suggested by Marc Jentsch
for(int k = 0; k < (list.size()/2); k++) list.swap(k,list.size()-(1+k));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment