Utils::TypedAspect Class | Extending Qt Creator Manual
Description: The TypedAspect class is a helper class for implementing a simple aspect.

- Extending Qt Creator Manual
- QtCreator
- TypedAspect
- Extending Qt Creator Manual 18.0.2

# Utils::TypedAspect Class

template <typename ValueType> class Utils::TypedAspect

The `TypedAspect` class is a helper class for implementing a simple aspect. More...

Header: | `#include <utils/aspects.h>`
Inherits: | Utils::BaseAspect
Inherited By: | Utils::BoolAspect, Utils::DoubleAspect, Utils::FilePathAspect, Utils::FilePathListAspect, Utils::IntegerAspect, Utils::MultiSelectionAspect, Utils::SelectionAspect, Utils::StringAspect, and Utils::StringListAspect

- List of all members, including inherited members

## Public Functions

void | setDefaultValue(const ValueType &value)

## Detailed Description

A typed aspect contains a single piece of data that is of the type `ValueType`.

## Member Function Documentation

### void TypedAspect::setDefaultValue(const ValueType &value)

Sets a default value and the current value for this aspect.

Note: The current value will be set silently to the same value. It is reasonable to only set default values in the setup phase of the aspect.

Default values will not be stored in settings.