Qt Reference Documentation

QML Basic Type: enumeration

An enumeration type consists of a set of named values.

An enumeration value may be specifed 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.


Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.

[0]; s.parentNode.insertBefore(ga, s); })();