Qt 4.8: QML Basic Type: enumeration

Qt Reference Documentation

- Qt 4.8
- ALL VERSIONS

- A
- A
- A
- Print

# QML Basic Type: enumeration

An enumeration type consists of a set of named values.

An enumeration value may be specified as either a string:

     Text { horizontalAlignment: "AlignRight" }

or as `<Element>.<value>`:

     Text { horizontalAlignment: Text.AlignRight }

The second form is preferred.

See also QML Basic Types.