Better yet don't use a pointer to QList but rather a QList object directly.