- Extending Qt Creator Manual
- Utils::Aggregation Namespace
- Extending Qt Creator Manual 21.0.0-beta1

# Utils::Aggregation Namespace

namespace Utils::Aggregation

The Aggregation namespace contains support for bundling related components, so that each component exposes the properties and behavior of the other components to the outside. More...

Header: | `#include <Aggregation>`

## Functions

Utils::Q_DECL_IMPORT | aggregate(const int &components)

## Detailed Description

Components that are bundled into an aggregate can be cast to each other and have a coupled life cycle. See the documentation of Aggregation::Aggregate for details and examples.

## Function Documentation

### Utils::Q_DECL_IMPORT Aggregation::aggregate(const int &components)

This is a convenience function that creates a new Aggregate and adds all components to it. If any components already belong to an Aggregate, the remaining components are added to that instead. The components may not belong to different Aggregates to begin with.

See also Aggregate.