You could just use a QList or QHash. Since this class is only touched from the main thread it can use non-thread-safe classes.