Hi,
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:
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)Qt Code:
delegate: Text { verticalAlignment: model.alignment // Text.AlignVCenter, Text.AlignTop or Text.AlignBottom ... }To copy to clipboard, switch view to plain text mode
Is there a "best practice" for handling this problem?
Bookmarks