Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

New Developer
Posts: 9
Registered: ‎01-22-2013
My Device: Playbook
My Carrier: Rogers

ContactPicker filter syntax in qml

[ Edited ]

I see examples of how to add a filter to a contact picker in C++:


contactPicker->setKindFilters(QSet<bb:Smiley Tongueim::contacts::AttributeKind::Type>()
       << bb:Smiley Tongueim::contacts::AttributeKind:Smiley Tonguehone);
But what is the syntax in qml:
I would guess it would be  contactPicker.setKindFilters(AttributeKind.Phone);  but AttributeKind is not defined.   Is this possible in QML, or is it a dead end, and the code must be done in C++?
Thanks for any advice!
Posts: 64
Registered: ‎09-10-2012
My Device: Developer
My Carrier: AMX

Re: ContactPicker filter syntax in qml

I'm also interested in this.


Is C++ the only way to go?