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

Trusted Contributor
Posts: 134
Registered: ‎05-31-2010
My Device: 8300
My Carrier: vodqafone
Accepted Solution

ActionItem shown twice

[ Edited ]

Hi Guys,


    I am getting a weird issue. When adding an Action Item to the Action Bar and if I use ActionBar.placementSmiley Tongueroperty, Action item is shown twice.


Please,Refer the image below


  Action Bar error


 Code snippet i used :


 actions:ActionItem {
                title: "Show Next Page"
                ActionBar.placement: ActionBarPlacement.OnBar


And if i remove ActionBar.placement every thing is working fine.


Could you please suggest me what might be the posssible solution?



Also found,This problem is when adding 


qml->setContextProperty("cppObject", this);

 in my cpp file.


Thanks & Regards,


Posts: 1,524
Registered: ‎12-18-2012
My Device: Z30, Z10 LE, DevAlpha C, PlayBook

Re: ActionItem shown twice



Register the properties before creating the root object as a workaround. This thread has more info:


Andrey Fidrya, @zmeyc on twitter
Posts: 180
Registered: ‎12-09-2011
My Device: 9360, BB10
My Carrier: Aircel

Re: ActionItem shown twice

[ Edited ]

in onCreationCompleted:{} first remove all the action and then again add the particular actions whatever you want to show.