I have a Text Item that uses different kinds of Alignment and must be able to take this information from a C++ model. For example, I want to be able to set:
Qt Code:
  1. delegate: Text {
  2. verticalAlignment: model.alignment // Text.AlignVCenter, Text.AlignTop or Text.AlignBottom
  3. ...
  4. }
To copy to clipboard, switch view to plain text mode 
I have not found anything about this in the docs (there is some stuff for "the other way 'round", for exposing c++ enums to QML of course)

Is there a "best practice" for handling this problem?