So far - Bouml does not have any way to inform the model that the return value of a function is a template. The workaround is to define things like QScopedPointer<int> as a separate type, but as it only takes one more lineedit in the interface to add template support I think this would be great.