Skip to content

Instantly share code, notes, and snippets.

@rowlo
Created January 2, 2014 11:34
Show Gist options
  • Save rowlo/8217951 to your computer and use it in GitHub Desktop.
Save rowlo/8217951 to your computer and use it in GitHub Desktop.
Create a list of a million QTimer objects.
QList<QObject*> buildObjectList()
{
qint64 size = 10000000;
QList<QObject*> objectList;
for (int i = 0; i < size; i++)
{
objectList << new QTimer();
}
return objectList;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment