ProgressParser Class | Extending Qt Creator Manual

Extending Qt Creator Manual | ProgressParser

Extending Qt Creator Manual 4.6.0

# ProgressParser Class

(Utils::ProgressParser)

- List of all members, including inherited members

## Public Functions

| ProgressParser()
virtual | ~ProgressParser()

## Protected Functions

virtual void | parseProgress(const QString &text) = 0
void | setProgressAndMaximum(int value, int maximum)

## Member Function Documentation

### ProgressParser::ProgressParser()

Default constructs an instance of ProgressParser.

### `[virtual]` ProgressParser::~ProgressParser()

Destroys the instance of ProgressParser. The destructor is virtual.

### `[pure virtual protected]` void ProgressParser::parseProgress(const QString &text)

Reimplement to parse progress as it appears in the standard output. If a progress string is detected, call `setProgressAndMaximum()` to update the progress bar accordingly.

See also Utils::ProgressParser::setProgressAndMaximum().

### `[protected]` void ProgressParser::setProgressAndMaximum(int value, int maximum)

Sets progress value and maximum for current command. Called by `parseProgress()` when a progress string is detected.