Qt Quick designer: how to add or bind property alias?
-
@
Item {
width: 640
height: 480//#here property alias richText: richText Text { id: richText }
}
@As the code piece shows, I add richText in the designer, but I can't add the line "#here" in the designer.
Of course I can edit the source code and add that line there, but it's not good for .ui.qml since the code editor gives warning about "The file should only be edited in Design mode".How to add property alias in Qt Quick designer?
Thanks
-
In the "What's New in Qt Creator 3.3" video https://www.youtube.com/watch?v=8IatD3iq6yY you can see how to add such an alias at 1:21.
The feature is documented here: http://doc-snapshot.qt-project.org/qtcreator-3.3/creator-quick-ui-forms.html
But currently this is only available in the Professional or Enterprise edition.
-
Thanks Thomas, then I can't use it in the community edition. :-(