Extending Qt Creator Manual | Macro

Extending Qt Creator Manual 4.7.1

# Macro Class

(ProjectExplorer::Macro)

- List of all members, including inherited members

## Public Functions

| Macro()
| Macro(QByteArray key, QByteArray value, ProjectExplorer::MacroType type = MacroType::Define)
| Macro(QByteArray key, ProjectExplorer::MacroType type = MacroType::Define)
bool | isValid() const
QByteArray | toByteArray() const
QByteArray | toKeyValue(const QByteArray &prefix) const

## Static Public Members

ProjectExplorer::Macro | fromKeyValue(const QString &utf16text)
ProjectExplorer::Macro | fromKeyValue(const QByteArray &text)
QByteArray | toByteArray(const int &macros)
int | toMacros(const QByteArray &)

## Member Function Documentation

### Macro::Macro()

Default constructs an instance of Macro.

### Macro::Macro(QByteArray key, QByteArray value, ProjectExplorer::MacroType type = MacroType::Define)

Default constructs an instance of Macro.

### Macro::Macro(QByteArray key, ProjectExplorer::MacroType type = MacroType::Define)

Default constructs an instance of Macro.

### `[static]` ProjectExplorer::Macro Macro::fromKeyValue(const QString &utf16text)

### `[static]` ProjectExplorer::Macro Macro::fromKeyValue(const QByteArray &text)

### bool Macro::isValid() const

### QByteArray Macro::toByteArray() const

### `[static]` QByteArray Macro::toByteArray(const int &macros)

### QByteArray Macro::toKeyValue(const QByteArray &prefix) const

### `[static]` int Macro::toMacros(const QByteArray &)