Double Actionbar button

I have a weird problem with my app Blackberry Cascades. I tried to add a button to actionbar (at the bottom of the application). But when I test it in the Simulator Blackberry 10 Dev Alpha (BB10_0_10.261) it seems that I have 2 (or sometimes 3) versions of the same key, as shown in the image below. While normally, there should be only 1?

So what I do is add a button on my page in QML as follows:

NavigationPane {
    Page {
        Container {
            layout: StackLayout {
            }
            ListView {
                ...
            }
        }
        actions: [
            ActionItem {
                title: "New Event"
                ActionBar.placement: ActionBarPlacement.OnBar // HERE
                onTriggered: {
                    var page = newEventPage.createObject();
                    navigationPane.push(page);
                }
                attachedObjects: ComponentDefinition {
                    id: newEventPage
                    source: "addEvent.qml"
                }
            }
        ]
    }
    onPopTransitionEnded: {
        page.destroy();
    }
}

This code is not much more to add a "New event" button that will connect to my "addEvent.qml".

But if I remove (or comment out) the line ' Actionbar.placement: ActionBarPlacement.OnBar' (marked with "HERE" in the code above), I get only 1 button, as planned.» But this button is located in the overflow menu, while I want it on the ActionBar inside.

All versions of the buttons do exactly the same thing (the behavior expected by the way: addEvent.qml of opening).

What I've tried: "Clean...". ' and then 'rebuild '; It did not work. I also tried to move the table actions in other places, as I thought this might be the wrong place, but that did not help either. Removing the application on the Simulator and then put it back in place.

I also tried on another computer and another Simulator, as I thought it might be my computer. But I had the same problem there.

I don't know if this is a bug or not, but I guess I'm doing something wrong, since I don't have a lot of experience in the development of Cascades. I searched everywhere, but do not have someone else with the same problem. I have not tested on a real device, because I have not (yet) a device of BB10.

StackOverflow link to this topic: http://stackoverflow.com/questions/14818434/duplicate-actionbar-buttons-in-blackberry-cascades

All credit for this answer goes to graymatter for his help (http://supportforums.blackberry.com/t5/Cascades-Development/Duplicate-actionbar-buttons/m-p/2157001#...).

But I can explain what I did to solve the problem. Apparently, the problem was that I used

QML-> setContextProperty ("model", model);

in my C++ code. And I thought that it made a huge difference, so I put this line behind the line

AbstractPane * root = qml->() createRootObject;

But apparently, it makes a difference, because then you will receive your double buttons.

So to solve the problem, simply move setContextProperty lines before the line createRootObject and everything is resolved.

And the problem I had with 3 buttons, seems to be that I had 2 setContextProperty lines of code behind the createRootObject line. So for each row of setContextProperty, buttons have been duplicated.

Anyone know why this strange thing that happens, feel free to mention it.

And to answer the question of BGmot the journal of slog2info gave no information on this issue.

Tags: BlackBerry Developers

Similar Questions

  • Is there a signal when the user clicks the overflow (3 points icon) on the actionbar button?

    Hello world

    Is there a signal when the user clicks the overflow (3 points icon) on the actionbar button? I would like to receive this signal (and signal when the overflow menu is closed) in order to modify the list of action items.

    Thank you very much

    -tom

    actionMenuVisualStateChanged is what you are looking for

  • Setting for tap double home button?

    I searched in vain a parameter set an action by double-clicking the home button. I put on all my previous Motorola phones, than to launch the camera; I'm used to it and it really want on my Moto X! I think I've looked everywhere but I just empty.

    Yes I don't see not all parameters to make this. I don't think it's a feature that would work well with the keys on the screen. This is perhaps why he isn't here.

    Have you tried to use the key to open the camera? I found it so that it is the number one feature, that I missed when I went to the Nexus 6. Once you get used to using it, it is actually faster that even the double tap would be. You can pick up the phone, twist, look at the screen and it is ready to take a picture. It is perhaps not fast enough, but it is very fast to open. I hope this helps.

  • ActionBar buttons and tabs and back

    By adding tabs and affecting the ButtonBack, the back button is removed or masked by the buttons on the tab.  Is this by design or a bug?

    this.actionbar.showTabsFirstOnBar( true );
    this.actionbar.backButton = new Action( 'Back', null, {id:'back'} );
    this.actionbar.addAction( new TabAction( 'Search', null, {id:'search'} ) );
    this.actionbar.addAction( new TabAction( 'POI', null, {id:'poi'} ) );
    this.actionbar.addEventListener( ActionEvent.ACTION_SELECTED, ActionSelected );
    

    In the instructions for user interface, it is recommended to use the tabs to the first level of the hierarchy of navigation only, and the diagonal form of the back button does not really have the buttons on the tab, so I guess that they can not be used on the same page at all.

    Maybe you can use a control segemented on top of the screen instead.

  • Double home button

    I have the Alcatel Onetouch fire, and as we know, there is a button (equipment) home. But it seems that there is a soft button at home, I don't need. How can hide this additional button at home.

    I found the solution. It was a developer option: "Enable software the home button. I have to uncheck it if I'm well now. Thanks anyway

  • BB10 Beta4 ActionBar questions

    There seems to be a lot of problems with the ActionBar BB10 AIR SDK 4 beta. I then test the code to create a simple ActionBar:

    package
    {
    import flash.display.DisplayObjectContainer;
    import flash.display.Sprite;
    import flash.display.StageAlign;
    import flash.display.StageScaleMode;
    import flash.events.Event;
    import qnx.fuse.ui.actionbar.ActionBar;
    import qnx.fuse.ui.actionbar.ActionPlacement;
    import qnx.fuse.ui.core.Action;
    import qnx.fuse.ui.core.TabAction;
    
    [SWF(backgroundColor="#777777", frameRate="60")]
    public class ActionBarTest extends Sprite
    {
    
      private var actionBar:ActionBar;
      private var actionBarOverflow:Sprite;
    
      public function ActionBarTest()
      {
        super();    // set up stage
        stage.align = StageAlign.TOP_LEFT;
        stage.scaleMode = StageScaleMode.NO_SCALE;
        stage.addEventListener( Event.RESIZE,   function(e:Event):void { actionBar.y = stage.stageHeight-actionBar.height; });
    
        // set up overflow
        actionBarOverflow = new Sprite();
        addChild(actionBarOverflow);
    
        // set up actionbar
        actionBar = new ActionBar();
        actionBar.backButton = null;        
    
        if(true) // test: turn tabOverflowParent on/off
          actionBar.tabOverflowParent = actionBarOverflow;
    
        if(false) { // test: switch between actions and tabs
          actionBar.showTabsFirstOnBar(false);
          actionBar.reserveActionSpace(true);
          actionBar.backButton = null;
          actionBar.addAction(new Action("A1", "star.png", null, ActionPlacement.ON_BAR));
          actionBar.addAction(new Action("A2", "star.png", null, ActionPlacement.ON_BAR));
          actionBar.addAction(new Action("A3", "star.png", null, ActionPlacement.ON_BAR));
          actionBar.addAction(new Action("A4", "star.png", null, ActionPlacement.ON_BAR));
          actionBar.addAction(new Action("A5", "star.png", null, ActionPlacement.IN_OVERFLOW));
          actionBar.addAction(new Action("A6", "star.png", null, ActionPlacement.IN_OVERFLOW));
          actionBar.addAction(new Action("A7", "star.png", null, ActionPlacement.IN_OVERFLOW));
          actionBar.addAction(new Action("A8", "star.png", null, ActionPlacement.IN_OVERFLOW));
          actionBar.addAction(new Action("A9", "star.png", null, ActionPlacement.IN_OVERFLOW));
          actionBar.addAction(new Action("A10", "star.png", null, ActionPlacement.IN_OVERFLOW));
          actionBar.addAction(new Action("A11", "star.png", null, ActionPlacement.IN_OVERFLOW));
          actionBar.addAction(new Action("A12", "star.png", null, ActionPlacement.IN_OVERFLOW));
        } else {
          actionBar.showTabsFirstOnBar(true);
          actionBar.reserveActionSpace(false);
          actionBar.addAction(new TabAction("T1", "star.png"));
          actionBar.addAction(new TabAction("T2", "star.png"));
          actionBar.addAction(new TabAction("T3", "star.png"));
          actionBar.addAction(new TabAction("T4", "star.png"));
          actionBar.addAction(new TabAction("T5", "star.png"));
          actionBar.addAction(new TabAction("T6", "star.png"));
          actionBar.addAction(new TabAction("T7", "star.png"));
          actionBar.addAction(new TabAction("T8", "star.png"));
          actionBar.addAction(new TabAction("T9", "star.png"));
          actionBar.addAction(new TabAction("T10", "star.png"));
          actionBar.addAction(new TabAction("T11", "star.png"));
          actionBar.addAction(new TabAction("T12", "star.png"));    }
    
        addChild(actionBar);      
    
      } // constructor
    } // class
    } // package
    

    He has a couple of if(true/false) conditions to test different scenarios.

    With actions A1... A12:

    • "Back" button is always reserved, even if there is no back button
    • Only 3 actions are displayed, even if there is room for a 4th
    • Order of measures on ActionBar is incorrect: A4 A1 A2
    • Menu of overflow of action appears in the "extended" form, and not with some icons like waterfalls/Webworks
    • Menu of overflow of action is never displayed on the desktop AIR
    • Action tags do not appear in the peripheral action of 720 x 720 bar

    Tabbed T1... T12:

    • When the tab overflow is displayed again, the before selected tabs have blue border
    • The tab in ActionBar buttons are grayed out sometimes out (but still selectable)
    • If actionBar.tabOverflowParent is defined, menu overflow is never hidden on the selection of the item or by tapping elsewhere
    • If actionBar.tabOverflowParent is not set, the tab overflow is not displayed on the desktop AIR
    • Menu of infinity tab is badly calibrated, making it the last tab inaccessible if overflow is behind actionbar and there are several tabs will fit on the screen
    • Tabs do not appear in the peripheral action of 720 x 720 bar

    Hey Jon,

    Here are the answers to your questions below, or in some cases as to why explanations sometimes. John, with an 'h', has responded and is correct on some of them, but thought I would confirm them as well.

    With actions A1... A12:

    "Back" button is always reserved, even if there is no back button

    [JD] - it is correct based on the directives of UX

    Only 3 actions are displayed, even if there is room for a 4th
    [JD] - ActionBar won't show up to 3 shares.

    Order of measures on ActionBar is incorrect: A4 A1 A2
    [JD] - need to double check the rules on this one.

     

    Menu of overflow of action appears in the "extended" form, and not with some icons like waterfalls/Webworks
    [JD] - menu overflow of Action appears always expanded. I think you are confused with the context Menu, which looks like, but has different behavior.
    You can see that it is the same thing as waterfalls if you add a contact, then select this contact. 3 points in the actionbar button shows the overflow from the action.
    If you long press the contact in the list, you will see the context menu, which is different.

     

    Menu of overflow of action is never displayed on the desktop AIR
    [JD] - in this case is because we have no way of knowing how deep should show the menu to. So we use NativeWindows to display the menu at the top of your application window. Because NativeWindows is not supported on any other mobile AIR platform in addition to BlackBerry, Flash Builder will not be displayed on the desktop. FDT allows you to show on the desktop if you add the following to your app descriptor, extendedDesktop mobileDevice extendedMobileDevice.

     

    Action tags do not appear in the peripheral action of 720 x 720 bar
    [JD] - what is expected. This is the same behavior when you use the ActionBar in landscape on the device of 768 x 1280 as well. It's making the content more room.

    Tabbed T1... T12:

    When the tab overflow is displayed again, the before selected tabs have blue border
    [JD] - corrected in the final version of the sdk.

     

    The tab in ActionBar buttons are grayed out sometimes out (but still selectable)
    [JD] - in this example, it looks like a bug, but it is in fact correct. When the tab overflow menu is fully developed, actions are disabled. In most cases they are not visible because the action bar hosted on the right. Here things look like it is in a weird State, but if implemented properly things work as expected.

     

    If actionBar.tabOverflowParent is defined, menu overflow is never hidden on the selection of the item or by tapping elsewhere
    [JD] - it is because it is expected that you cover the tabOverflowParent with your content. This property is here so that you can control the depth of the menu. Based on the UX guidelines menu should be under your content and the content comes alive to the right to reveal.

    If actionBar.tabOverflowParent is not set, the tab overflow is not displayed on the desktop AIR
    [JD] - we use NativeWindow in this case. Same as above.

    Menu of infinity tab is badly calibrated, making it the last tab inaccessible if overflow is behind actionbar and there are several tabs will fit on the screen
    [JD] - when the overflow tab menu is visible the actionbar should animate the road indicating the correct size of the menu tab overflow.

    Tabs do not appear in the peripheral action of 720 x 720 bar
    [JD] - same as Actions

    Here is a sample of update based on your which helps to show how you really want to set up.

    package
    {
        import qnx.fuse.ui.actionbar.ActionBar;
        import qnx.fuse.ui.actionbar.ActionPlacement;
        import qnx.fuse.ui.core.Action;
        import qnx.fuse.ui.core.TabAction;
        import qnx.fuse.ui.events.DragEvent;
    
        import flash.display.Bitmap;
        import flash.display.BitmapData;
        import flash.display.Sprite;
        import flash.display.StageAlign;
        import flash.display.StageScaleMode;
        import flash.events.Event;
    
        [SWF(backgroundColor="#777777", frameRate="60", width=768, height=1280)]
        public class actionbarsample extends Sprite
        {
            private var actionBar:ActionBar;
            private var actionBarOverflow:Sprite;
            private var __slideX:Number = 0;
            private var content:Sprite = new Sprite();
    
            public function actionbarsample()
            {
                super();
    
                // set up stage
                stage.align = StageAlign.TOP_LEFT;
                stage.scaleMode = StageScaleMode.NO_SCALE;
                stage.addEventListener( Event.RESIZE, function( e:Event ):void
                {
                    actionBar.y = stage.stageHeight - actionBar.height;
                } );
    
                // set up overflow
                actionBarOverflow = new Sprite();
                addChild( actionBarOverflow );
    
                content.addChild( new Bitmap( new BitmapData( stage.stageWidth, stage.stageHeight, false, 0xFFFFFFFF ) ) );
    
                addChild( content );
    
                // set up actionbar
                actionBar = new ActionBar();
                actionBar.backButton = null;
    
                actionBar.addEventListener( DragEvent.DRAG_MOVE, onDragMove );
    
                if (true) // test: turn tabOverflowParent on/off
                    actionBar.tabOverflowParent = actionBarOverflow;
    
                if (true)
                {
                    // test: switch between actions and tabs
                    actionBar.showTabsFirstOnBar( false );
                    actionBar.reserveActionSpace( true );
                    actionBar.backButton = null;
                    actionBar.addAction( new Action( "A1", "star.png", null, ActionPlacement.ON_BAR ) );
                    actionBar.addAction( new Action( "A2", "star.png", null, ActionPlacement.ON_BAR ) );
                    actionBar.addAction( new Action( "A3", "star.png", null, ActionPlacement.ON_BAR ) );
                    actionBar.addAction( new Action( "A4", "star.png", null, ActionPlacement.ON_BAR ) );
                    actionBar.addAction( new Action( "A5", "star.png", null, ActionPlacement.IN_OVERFLOW ) );
                    actionBar.addAction( new Action( "A6", "star.png", null, ActionPlacement.IN_OVERFLOW ) );
                    actionBar.addAction( new Action( "A7", "star.png", null, ActionPlacement.IN_OVERFLOW ) );
                    actionBar.addAction( new Action( "A8", "star.png", null, ActionPlacement.IN_OVERFLOW ) );
                    actionBar.addAction( new Action( "A9", "star.png", null, ActionPlacement.IN_OVERFLOW ) );
                    actionBar.addAction( new Action( "A10", "star.png", null, ActionPlacement.IN_OVERFLOW ) );
                    actionBar.addAction( new Action( "A11", "star.png", null, ActionPlacement.IN_OVERFLOW ) );
                    actionBar.addAction( new Action( "A12", "star.png", null, ActionPlacement.IN_OVERFLOW ) );
                }
                else
                {
                    actionBar.showTabsFirstOnBar( true );
                    actionBar.reserveActionSpace( false );
                    actionBar.addAction( new TabAction( "T1", "star.png" ) );
                    actionBar.addAction( new TabAction( "T2", "star.png" ) );
                    actionBar.addAction( new TabAction( "T3", "star.png" ) );
                    actionBar.addAction( new TabAction( "T4", "star.png" ) );
                    actionBar.addAction( new TabAction( "T5", "star.png" ) );
                    actionBar.addAction( new TabAction( "T6", "star.png" ) );
                    actionBar.addAction( new TabAction( "T7", "star.png" ) );
                    actionBar.addAction( new TabAction( "T8", "star.png" ) );
                    actionBar.addAction( new TabAction( "T9", "star.png" ) );
                    actionBar.addAction( new TabAction( "T10", "star.png" ) );
                    actionBar.addAction( new TabAction( "T11", "star.png" ) );
                    actionBar.addAction( new TabAction( "T12", "star.png" ) );
                }
    
                content.addChild( actionBar );
            }
    
            private function onDragMove( event:DragEvent ):void
            {
                __slideX += event.deltaX;
                content.x = Math.round( __slideX + stage.stageWidth );
            }
            // constructor
        }
        // class
    } // package
    
  • To access the ApplePay on iWatch

    Portfolio on the 1 series iWatch cannot be accessed after the new update ios10 by double tapping the button side.

    How can I make it behave as it did in the previous ios?

    Hello

    You can't be double-clicking quickly enough.

    For comparison / provided for: in order to activate Apple pay via the side on Apple Watch, double click button should be significantly faster that the slower speed in the course of which a double-tap on the Home button on the iPhone leads to previews of applications open to view.

    To familiarize yourself with the required speed, you can practice launching this screen on your watch at any time. To return to the face of the watch, press the digital Crown once.

  • Wallet Acess on locked screen ios 10

    I'm unable to access my portfolio on a screen locked after upgrade to ios 10.  Anyone with this problem and do you have a fix?

    Have you checked your wallet and settings of pay Apple to make sure that the option to double click button "home" is on?

  • Watch does not open apple pay always.

    When I put my watch on, I get my password. Then it is supposed to be ready to charge Apple when I press on the sidebar twice.  It seems to work fine until I really need to work, as on the cash register, then always when I press on the side bar twice, I get my selector friends instead of pay apple and you're screwed. Nothing does that I in this matter if it appears and I have to go to my phone.  Of course my phone shows Apple pay each time that I have learned it from my pocket, except when I'm at the Fund who need. Then, it will no longer appear and I find using plastic.  Very embarrassing for me and seems not good for Apple payroll.  I hope this will be fixed with the other improvements coming this fall of 2016.

    Hi Steve

    Try the double-pressing the side button faster.

    For comparison / provided for: in order to activate Apple pay via the side on Apple Watch, double click button should be significantly faster that the slower speed in the course of which a double-tap on the Home button on the iPhone leads to previews of applications open to view.

    To familiarize yourself with the required speed, you can practice launching this screen on your watch at any time. To exit back to the homescreen from the friends screen or screen Apple pay, press once the digital Crown.

  • Mac p1102w no 'HTMLConfig' in the community more

    Following the first time wireless setup instructions, I can't go to the wireless user interface configuration via USB.  I can add the printer, but there is HTMLConfig button click on in the print settings, which means that I can not configure the wireless.

    Any ideas?

    Hi rslifka

    I understand that you are away from the utility tab.

    Here's how to access the utility in a different way.

    Access the drive hard Mac, library, printers, hp, laserjet,

    P1100_P1560_P1600Series, open htmlconfig. Access the network

    tab, select Wireless on the left side, select

    infrastructure, network selection, select double

    arrow button to move the network left name

    side, find the passwords, apply. You should get a solid blue

    lighting wireless in about 1 minute.

    (Note: If the configuration html does not load, you need to)

    updated the firmware of the printer with usb connection)

    http://h10025.www1.HP.com/ewfrf/wc/softwareDownloadIndex?

    softwareitem = bi-115797-

    2 & cc = us & dlc = en & lc = en & os = 4114 & product = 4110396 & sw_lang =



    Then go into the Apple, system preferences, print them out and scan.

    Highlight the P1102w and click on the sign less bottom left

    corner to delete, and then disconnect the usb cable, click on more

    signed lower left and highlight the Hello P1102w

    printer and click the Add button.



    Test printing.

    Let me know if this helped.

  • Problem of touchpad and keyboard on laptop Satelliete C

    I can type my password to connect, but when I get to the home page of Windows the touchpad will move the arrow but double click buttons are unresponsive and or not clicking via the touchpad. Windows on the keyboard button does not respond but the caps and num lock buttons seem to work as the lights on them go on and outside. Everything works normally in safe mode.

    HELP please.

    What model phone you have and what operating system are you using?

    Since when did you notice this issues? Have you tried to roll back the OS to an earlier time when everything worked OK?

  • Banner appears on the bottom of the screen. In my case of a game. How can I remove this?

    If I Double push button House a small banner is displayed at the bottom of the screen. In my case of a game. How can I remove this?

    LLA characteristic suggesting that is the app you normally use in a certain situation. As location, time of day, headphones and Bluetooth connected. Phone tries to find out if you are always doing something. As I always opened it maps when I connect to my car Bluetooth. Or always open music when through headphones are plugged in. Or always open weather at 07:00.

    Sometimes, you see an icon on the lock screen or a banner in the switch of the app.

    TO disable it, go to settings-> iTunes and App Store-> disable the suggested applications for installed applications. You can also disable Siri suggested applications in the spotlight also search, but that's a separate thing.

  • A loop of touchpad webOS

    My touchpad resets everytime I try to open any application other than the calendar. Hard starting does not seem to help. The only other things I noticed is that every 5 seconds the double Home button flashes and there is a cerficate of google security not trust warning. Any suggestions?

    Have you installed the update from the App catalog successfully?

    The device is running the latest version of webOS?  (3.05)

    Have you tried running the webOS Doctor reflash the unit?  If this is not the case, here are the instructions:

    How to doctor an HP TouchPad (reflash the ROM)

    On your Touchpad, make sure you have:

    USB cable. The battery is charged at least 30%.

    Computer:

    Windows 7, Windows XP, Windows Vista available USB (not a hub or a secondary port). Java 1.5 or later version is installed. If you are not sure what version of Java, you have, or even if Java is installed, go to www.java.com and click the Do I have Java? link to install the latest version of Java. 210MB of storage space. Connection to the Internet.

    Various information:

    The update process will take about 15 minutes. During this process, your device will be unavailable for use.

    Download webOS Doctor

    Download webOS Doctor on your desktop. If you have a profile of webOS, get it from http://ws.hpwebos.com/webosdoctor/sorry.htm

    If not, check the webOS Internals page: http://www.webos-internals.org/wiki/Webos_Doctor_Versions

    Prepare your TouchPad update

    Hold the Power button for a few seconds until a menu. Press on stop to turn your unit off completely.

    WebOS Doctor running

    Double-click on the downloaded file to start webOS Doctor. Follow the directions on the screen until you are prompted to connect your device. Select the language that you have selected on your device and click Next. Confirm your choice of language. Click on accept to accept the terms of use. Click Next. webOS Doctor checks your system. BE PATIENT! I saw this part take a few minutes to complete. After webOS doctor ends your control system, you will be asked to connect your device.

    Connect your device and the finishing of the webOS Doctor update

    Connect your device to your computer via the USB cable. You must connect your device directly to your computer, not through a USB hub or other intermediate device. Now the tricky part. Hold the Volume Up button on the device and insert the USB cable. After the USB great symbol appears on the screen, release the Volume button upward. If you see the HP logo instead of the large USB symbol, can the Volume Up button is released prematurely. If this happens, wait for your device to start, stop your device and then repeat step 2. Windows identifies your component and may offer to install two different drivers. When asked to install the drivers of OMAP, choose no not at the moment. When asked to install the drivers for Palm Novacom (liner), select Yes, and then leave the drivers to install. This can take some time. Once the drivers have been installed, the next button will become available in webOS Doctor. Click Next. Do not disconnect your device from the computer during the update process. When the reset is complete screen, click done. Wait a few minutes for your device to reset. You're done!

    WyreNut

  • Action items get duplicated - why?

    Hello

    I have this code to add the point of action on my page:

    ...
    
        actions: [
            ActionItem {
                title: "Action 1"
                ActionBar.placement: ActionBarPlacement.OnBar
    
                onTriggered: {
                    myLabel.text = "Action 1 selected!"
                }
            }
        ]
    
    ....
    
    } // end of Page
    

    In the preview QML, action that an item is displayed as above - but when I run the application, there are two copies of the action above element. Anyone has any idea why? Thank you.

    Refer to this post: http://supportforums.blackberry.com/t5/Cascades-Development/Duplicate-actionbar-buttons/m-p/2157969#...

  • ActionItem shown twice

    Hi guys,.

    I have a weird question. When you add an action item to the action bar, and if I use ActionBar.placementproperty, point of Action is displayed twice.

    Please, see the image below

    Code snippet I used:

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

    And if I remove ActionBar.placement every thing works fine.

    Could you please suggest me what could be the possible solution?

    Update:

    Found, this problem is when adding

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

    in my CPC file.

    Thank you best regards &,.

    SHA.

    Hello

    Save the properties before you create the root object to work around the problem. This thread has more information:

    http://supportforums.BlackBerry.com/T5/Cascades-development/duplicate-ActionBar-buttons/m-p/2157969#...

Maybe you are looking for

  • Migration to the new leading directory of Xcode 7.3.1 PCH errors

    I moved my folder under/User to an another new update short user name folder. Just fine, except when I ran Xcode 7.3.1 only he had the build errors referring to the former name of folder.  Locations is set correctly using the new name of the folder,

  • NB100: keyboard problem internal after changing the language on the external keyboard

    Hello I bought a brand new Toshiba NB100.Due to the size of the keybord th (and the odd choice of colored letters grey on the keyboard), I bought an external keyboard as well.My settings of language is Norwegian, but the external keyboard is US.So I

  • How can I change the projects of mswmm on mac?

    I need to be able to edit this file on my laptop at home (mac), but I don't seem to work. Please help me!

  • Differences between the date indicated by DateField

    Hello! I m affected by strange behavior when you work with the DateField control on different versions of the OS. When you use this statement TestField DateField = new DateField ("", 0, DateFormat.getInstance (DateFormat.TIME_SHORT), DrawStyle.RIGHT)

  • Cloning of EBS R12.2.4

    Hi allEBS R12.2.4RHEL 6.5I always get error when cloning time 2 CRP in the same server instance due to duplicate exist in the OraInventory folder.How to avoid it? My solution is to manually delete the entries in the xml file that is pretty hard to do