- Extending Qt Creator Manual
- TextDisplay
- Extending Qt Creator Manual 10.0.2

# TextDisplay Class

class Utils::TextDisplay

A text display is a phony aspect with the sole purpose of providing some text display using an Utils::InfoLabel in places where otherwise more expensive Utils::StringAspect items would be used. More...

Header: | #include <TextDisplay>
Inherits: | Utils::BaseAspect

- List of all members, including inherited members

## Public Functions

| TextDisplay(const QString &message = {}, InfoLabel::InfoType type = InfoLabel::None)
virtual | ~TextDisplay() override
void | setIconType(InfoLabel::InfoType t)

## Reimplemented Public Functions

virtual void | addToLayout(Layouting::LayoutBuilder &builder) override

## Detailed Description

A text display does not have a real value.

## Member Function Documentation

### TextDisplay::TextDisplay(const QString &message = {}, InfoLabel::InfoType type = InfoLabel::None)

Constructs a text display showing the message with an icon representing type type.

### `[override virtual]` TextDisplay::~TextDisplay()

### `[override virtual]` void TextDisplay::addToLayout(Layouting::LayoutBuilder &builder)

Reimplements: BaseAspect::addToLayout(Layouting::LayoutBuilder &builder).

### void TextDisplay::setIconType(InfoLabel::InfoType t)

Sets t as the information label type for the visual representation of this aspect.