Skip to content

Instantly share code, notes, and snippets.

@lamprosg
Created January 20, 2013 20:29
Show Gist options
  • Select an option

  • Save lamprosg/4581482 to your computer and use it in GitHub Desktop.

Select an option

Save lamprosg/4581482 to your computer and use it in GitHub Desktop.
Qt - qSort Algorithm
int main()
{
//Let's say we have a listof integers
QList<int> List;
//insert some numbers
List << 2 << 3 << 1 << 0; //Yes you could use List.append
qSort(List)
foreach (int i, List)
{
qDebug() << i;
}
//The above will output 0,1,2,3
}
@lamprosg
Copy link
Copy Markdown
Author

QLInkedList is implemented the same as QList

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment