Can this property be set in QML? If so, what is the syntax?No, because if you look at the docs for ContactPicker (properties index) you'll notice that it is not listed as a property at all. You'd have to call the Code: setKindFilters(const QSet< bb:
im::contacts::AttributeKind::Type> &kindFilters) method, but that would be rather difficult from QML.
The first two options that spring to mind for me are:
Subclass ContactPicker as EmailContactPicker and preset the kind, or subclass and add your own properties.Construct an instance of ContactPicker with preset kind and pass it in to the QML as a context variable.
The first can be made as flexible and complicated as you like. The second is messy and maybe more trouble than it's worth.