@baba1472 The desired behavior is to print out the top attributes for _each_ template. It appears the current code will print out the top attributes across all templates. In other words, consider the case where there are multiple `write()` calls made prior to the destructor being invoked.

It seems that `QMap<float, QString> attributes` should become `QList< QMap<float, QString> > attributes` and the logic for populating it should be moved to `write()`