Extending Qt Creator Manual | ListField

Extending Qt Creator Manual 4.6.1

# ListField Class

(ProjectExplorer::ListField)

Inherits: | ProjectExplorer::JsonFieldPage::Field

- List of all members, including inherited members

## Public Types

enum | SpecialRoles { ValueRole, ConditionRole, IconStringRole }

## Public Functions

| ListField()
virtual | ~ListField() override

- 15 public functions inherited from ProjectExplorer::JsonFieldPage::Field

## Protected Functions

QStandardItemModel * | itemModel()
QSize | maxIconSize()
QItemSelectionModel * | selectionModel()
void | setSelectionModel(QItemSelectionModel *selectionModel)

## Reimplemented Protected Functions

virtual QWidget * | createWidget(const QString &displayName, JsonFieldPage *page) override = 0
virtual void | initializeData(Utils::MacroExpander *expander) override
virtual bool | parseData(const QVariant &data, QString *errorMessage) override
virtual void | setup(JsonFieldPage *page, const QString &name) override = 0
virtual bool | validate(Utils::MacroExpander *expander, QString *message) override

- 6 protected functions inherited from ProjectExplorer::JsonFieldPage::Field

### Additional Inherited Members

- 1 static public member inherited from ProjectExplorer::JsonFieldPage::Field

## Member Type Documentation

### enum ListField::SpecialRoles

## Member Function Documentation

### ListField::ListField()

Default constructs an instance of ListField.

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

Destroys the instance of ListField. The destructor is virtual.

### `[override pure virtual protected]` QWidget *ListField::createWidget(const QString &displayName, JsonFieldPage *page)

### `[override virtual protected]` void ListField::initializeData(Utils::MacroExpander *expander)

### `[protected]` QStandardItemModel *ListField::itemModel()

### `[protected]` QSize ListField::maxIconSize()

### `[override virtual protected]` bool ListField::parseData(const QVariant &data, QString *errorMessage)

### `[protected]` QItemSelectionModel *ListField::selectionModel()

See also setSelectionModel().

### `[protected]` void ListField::setSelectionModel(QItemSelectionModel *selectionModel)

See also selectionModel().

### `[override pure virtual protected]` void ListField::setup(JsonFieldPage *page, const QString &name)

### `[override virtual protected]` bool ListField::validate(Utils::MacroExpander *expander, QString *message)