How to stop pushing him to a QML Page when already in this Page

Hello

Main.qml I have the following question of action menu that displays SettingsPage.qml.

hand. QML:

NavigationPane {
    id: nav

    ...

    Menu.definition: MenuDefinition {
        actions: [

            ...

            ActionItem {
                title: "Settings"
                onTriggered: {
                    console.log("entering settings page");

                    var settingsPage = settingspagedef.createObject();
                    Qt.nav.push(settingsPage);
                }
            },

            ...

            ] // end of actions list

     } // end of MenuDefinition

    ....

    Page {

         ....

    }

And the SettingsPage.qml is a QML file that contains only the item page (and not in a NavigationPane). Thus, in settings page, another page of settings is pushed on top of the current page of settings when you click the action item "Settings." How can I prevent pushing to SettingsPage.qml one another when there is already a settings page? Thanks in advance.

I prefer to remove the knob to Settngs completely rather than turn it off when I do not want my user to have access to it. My application says the menu of application as follows:

MenuDefinition {    id: appMenu
    settingsAction: _settingsAction
    helpAction: _helpAction
    attachedObjects: [
        SettingsActionItem {
            id: _settingsAction
            onTriggered: {
            }
        },
        HelpActionItem {
            id: _helpAction
            onTriggered: {
            }
        }
    ]
    actions: [
    ]
    function restoreSettingsAction() {
        settingsAction = _settingsAction;
    }
    function restoreHelpAction() {
        helpAction = _helpAction;
    }
}

Now of QML, you can do this:

// ---Remove the application menu Settings button
appMenu.settingsAction = null;

// ---Restore the application menu Settings button
appMenu.restoreSettingsAction();

... and you can do the same thing with the help button if you wish. Note that if you have any other button in your menu of the application they will probably move in the menu if you delete/restore buttons settings or help.

burakk wrote:

Yes, I mean the menu of the Application.

Your code turns off the entire menu. What happens if I don't only want the settings menu option? I guess I have to disable the part of the action of the main.qml. Is there another way to achieve the QML (main.qml) other action element other than Qt object implementation?

onCreationCompleted: {}
QT.nav = nav;
Qt.catList = categoriesList;

}

Tags: BlackBerry Developers

Similar Questions

  • How to stop demand for files compressed in my Outlook Express? This request appears on my screen of many times while I'm working.

    How to stop demand for files compressed in my Outlook Express? This request appears on my screen of many times while I'm working, even when I go on the internet, it always appears & crashes me typing.  I have a lot of emails and I don't want to compress their files.

    original title: HOW can I STOP ASKING to COMPRESS the FILES in OUTLOOK EXPRESS

    How to stop demand for files compressed in my Outlook Express? This request appears on my screen of many times while I'm working, even when I go on the internet, it always appears & crashes me typing.  I have a lot of emails and I don't want to compress their files.

    Compress, (Compact in American English), removes waste of space, not your messages. Please read below, but if compact you and still get the prompt, after return. It is another question.

    Why OE insists on compacting folders when I close it? :
    http://www.insideoe.com/FAQs/why.htm#compact

    Compacting your folders periodically is a must to keep OE works fine and at some point, you may lose all your saved messages if you do not. When you delete or move messages, the space they used remains until you compact.

    Never touch anything until the compression is finished.* *.

    See:
    www.oehelp.com/OETips.aspx#2

    With SP2, Automatic compaction in the background has been removed because of problems he has caused. Now, you will get a prompt to compact after 100 closures of OE, you need to do, and do not touch anything until it's finished. If you compact manually, at your convenience, this will also set the counter to zero. See this for more information:
    http://www.insideoe.com/files/maintain.htm#compact

    If you are fully patched, you will now see a copy of your dbx files copied to the Recycle Bin as BAK files. If something goes wrong when compacting, the messages can be easily restored from this backup. A compact manual resets also the counter in the back of the registry to zero now.

    For more information, see the information framed in red here:
    www.oehelp.com/OETips.aspx#2

    To keep things running smooth and harden faster:

    Do not archive mail in default OE folders. It will eventually become corrupt and you may lose mail. Create your own folders defined by the user for mail storage and move your mail to them. Empty the deleted items folder regularly. Keep user created folders under 300 MB, and also empty as is possible to default folders.

    And backup often.

    Outlook Express Quick Backup (OEQB Freeware)
    http://www.oehelp.com/OEBackup/default.aspx

  • NOTEBOOK: HOW TO STOP THE EMBEDDED "UNTITLED" WORD ON PAGE I USE

    HOW TO REMOVE THE EMBEDDED "UNTITLED" WORD OF THE PAGE WHICH SHOULD BE PRINTED...                                                                                                                                                                                      Remember - this is a public forum so never post private information such as numbers of mail or telephone!

    Ideas:

    • You have problems with programs
    • Error messages
    • Recent changes to your computer
    • What you have already tried to solve the problem

    HOW TO STOP THE EMBEDDED "UNTITLED" WORD ON PAGE I USE

    Go to file, Page Setup and remove header and footer text.

    "jimmcanany" wrote in the new message: * e-mail address is removed from the privacy... *

    HOW TO REMOVE THE EMBEDDED "UNTITLED" WORD OF THE PAGE WHICH SHOULD BE PRINTED... Remember - this is a public forum so never post private information such as numbers of mail or telephone!

    Ideas:

    * You have problems with programs
    * Error messages
    * These recent changes made to your computer
    * What you have already tried to solve the problem, HOW can I STOP THE WORD EMBEDDED 'UNTITLED' of BEING PRINTED on the PAGE that I USE

  • How to stop the printer printing an extra page after that I have print something, with getting http: /h10141 on top

    How to stop the printer printing an extra page after that I have to print something, with mGET http: / h1014.www1.hp.com/pup/inkjet/updates/va/mamifests/b_bu_c_p00_348e88c

    Host: h10141.www1.hp.com

    Accept-encoding: identity; q = 1.0 *; q = 0

    User-Agent: HP - inkjet ink-WebUpdate - 1.1

    printer

  • How to stop the pop-up for saving files when I start the computer?

    I was going to save files on a drive of DVD-CD-R, but I decided to do not, how can I stop the pop-up for saving files when I start the computer? It keeps appearing even though I cancelled check?

    * original title - cancel recording of dvd/cd-rw *.

    Hello

    Windows displays a temporary storage area where files are held before they are copied to the CD. Files or folders located in the temporary storage area are listed under files ready to be written on the CD.

    Try the steps and check them off below if it helps:

    a. double-click my computer and then double-click the CD burner.

    b. under CD writing tasks, click on delete temporary files.

    When you delete the contents of the temporary storage area, you can set this field to another set of files and folders that you want to copy to the CD. The files are not deleted from their location on your computer or on the CD.

  • How to stop applications to sync on my iPhone when I sync my music from iTunes on my Mac to my iPhone?

    How can I stop all applications that are in my iTunes to sync on my iPhone while I'm syncing my music from my iTunes on my Mac to my iPhone? He doesn't have a checkbox in the Apps section for not having ALL these apps to go back on my iPhone. Help! Now should I remove each app individually out of my iPhone?

    Hi there deg20,

    Welcome to the communities of Apple Support! Looks like all the applications listed in iTunes to sync your iPhone while you move your music. I can understand wanting to be able to customize the content that is on your device. I'll be more than happy to help!

    From what you describe, appears it option "automatically sync when this iPhone is connected" to be enabled. To activate which turns off, select the Summary tab and uncheck the box next to this feature. Once you have done this, you should be able to navigate between sections of content / media specific to choose what you want to synchronize with your device. After you apply these changes, it should appear on your iPhone. See the following article for advice on the content of sync on your iPhone:

    Sync your iPhone, iPad or iPod touch with iTunes on your computer through a USB port

    You should also ensure that you have enabled the option to manually manage content, as described in this article:

    Sync your iPhone, iPad or iPod touch with iTunes on your computer through a USB port

    If you don't manually add or remove content from your device

    Check the option "Manually manage music and videos" is turned on:

    1. Connect your device to your computer.
    2. Open iTunes. Make sure you have the latest version.
    3. Locate and click on your device.
    4. In the left sidebar, click summary.
    5. Scroll down to the Options section.
    6. Check the "Manually manage music and videos."
    7. Click on apply.

    You might see a message that your device is synchronized with another library. This means that you used another computer to sync your device in the past, and iTunes cannot sync without erasing first and replace everything iTunes on your device.

    Relax your day fantastic!

  • How to stop the photo.app of the opening when I plugin my iPhone?

    I just installed El Capitan last night. I loved that everything seems to be much more vivid than before.

    Only problem so far is Photo.app keeps opening when I plugin my iPhone. I do not use Photo.app and I have my own system to store my images and I don't want to block my SSD with images that I have elsewhere. How can I stop this from happening? I got this game to Yosemite, but do not remember how I did it.

    don't have my phone right now, but I think it's always there when you open the Photos and the device is connected

  • How to stop the printer to print the page alignment each time that the printer is turned off?

    I have the HP 2480 all in one printer/copier/scanner. Never understood how to scan to my computer, but it's not my problem. Whenever the printer gets cut and then cut on it automatically prints an alignment page. How can I he stop doing that. I'm tired of wasting paper and ink.

    Hello

    The printed sheet is a part of the process of alignment to align the ink cartridges.

    Make sure you complete alignment by following the steps below, otherwise the printer will keep printing the page because the process was not completed.

    http://support.HP.com/us-en/document/c01764745

    Kind regards

    Shlomi

  • How to stop the keyboard to the loading screen when I turn on the computer?

    How can I get the on screen key board to stop appearing

    How can I get the on screen key board to stop appearing

    Assuming you are using Vista.

    Start button > control pPnel > left column, Classic view > accessibility > use computer without mouse and keyboard >uncheck "use Screen keyboard" > click Save for the benefits of others looking for answers, please mark as answer suggestion if it solves your problem.

  • How to stop reading GIF animation in web pages?

    Various Web sites shows many images available for download. Some of these images are animated GIF files. These files take time to load and chew a lot to my limited use download. IE Explorer let me see a single image for the GIF but do not load or play the GIF. How can I get this same setting in Mozilla Fire Fox?

    Hello vyoumans,

    I found two different ways that this can be done.

    1. This firefox addon, Toggle animated GIF images, seems to work pretty well. CTRL + m activates / deactivates the animations on and outside.

    2. If you do want to install an addon, you can go to your browser configuration file. type of topic: config in the address bar and find the image.animation_modeentry. Double click on it and set its value to none. This should clear all GIF animations

  • Anno 2015: How to stop itunes songs from AutoPlay 12.3 when importing files

    Each year or if, after several itunes upgrades half of my library deteriorated to the point where the images and files have disappeared, so I reload to everything new.

    The problem: every 100' th file (or almost) begins to play, so I get a cacophony of music marketing, and I can't do anything with video or sound for hours.

    I would like to delete this.

    I want to import any file into itunes and nothing start playing.

    Thus, it was suggested on these forums , downgrade to some pre - V10 itunes. I prefer not to do so.

    Other options hereand here suggested MAC forums this installation of Safari then uncheck "safe autoplay downloaded files" are the key to success. Well, no such Safari in Wondows 10 and versions windowsified of Techspot et al do not seem to do the trick.

    So for itunes V12.3 or later version on Win10, how can I prevent what it is loaded in the library of auto play?

    THX.

    A common cause of this behavior is files .m3u being present in the files that are added to the library. You can remove these first. Or you can use iTunes folder Watch.

    TT2

  • How to stop Windows Update to take keyboard focus, when you are asked "do you want to restart now?

    Windows Update often wants to restart the computer after an update.  If you say "not now" (or ignore?), he will later pop up a question "reboot now?" in a bubble of task bar.  INCREDIBLY, it will at that time take keyboard focus of everything that happens and then accept what he gets as a response from the user.  This means that if the user was in the middle of typing something, the following sequence of keys will enter the bubble "you want to restart" instead of some request the user was in the middle of the help.  It's very bad.

    Here is what just happened to me.  I was in the middle of typing a document when the keyboard focus was suddenly taken by the issue of recovery, a fraction of a second later, the following combination of keys, he disappeared - I have no idea what hit it.  Fortunately, I saw the flash and guess what had happened and quickly you press 'save' on my request.  A few seconds later, my application has been closed as the machine restarted.

    I think that the bubble of Windows Update SHOULD NOT STEAL the KEYBOARD FOCUS.  I think it's dangerous and bad design.

    What is the best way to communicate this suggestion to the team of Windows Update?

    Is there a setting to stop Windows Update to do this?  (Stop stealing keyboard focus)

    I use Vista Home Premium

    I'm looking for a Microsoft solution for the specific problem I described, and/or advice on where post for better attention to Microsoft to "design problem".

    None of us are obstruction you. If we knew a way to avoid this problem (problem), we would have mentioned it earlier in this thread.

    You aren't the first person to complain about this and I'm sure you won't be the last. According to Microsoft, you have two options:

    1 use an automatic updates setting other Automatic (for example, download updates but let me choose whether to install them). or...

    2. turn off the automatic updates and get your updates manually (which I don't recommend).

    See...

    Windows Update for Windows Vista Help
    http://www.Microsoft.com/Windows/downloads/windowsupdate/learn/windowsvista.mspx

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • How to stop Hotmail automatically opening the next email when I delete an email open.

    Gmail and Yahoo mail both send you back in the Inbox after you delete the message you read. How can I get Hotmail to do the same. I lost all the information on one of my computers caused by Hotmail automatically open an email that I would have never opened.

    I have the same problem... I don't want not to cancel my direct email account, but this has to change... Help!


     
    Have you tried to ask in the forum for help from Hotmail?
     
    Windows Live Solution Center Hotmail Forum
    http://windowslivehelp.com/forums.aspx?ProductID=1
  • DeskJet 2540: deskjet 2540 - how to stop the printing of 'print quality page' feature is implemented.

    New printer that is connected to the desktop Linux [Ubuntu 14.10] cable and everything works fine. But when switched on it automatically prints a "print quality page. I read the online help to prevent what gives think I scans the document and pressing / or two scan buttons to stop cela automatic printing, but nothing helped. Is there a proper procedure available somewhere to guide the user through all that is needed to stop this waste of paper and ink?

    I had already tried these solutions suggested, but even after power off / on a couple of times, nothing had changed. Mystically then when I turned on for use a few days more late the test print had been removed - weird or what?

  • How to stop the slideshow of my photos appear when the computer is idle

    I did something that now shows my pictures in a slide show whenever I leave my computer idle. It continues even when I try to put it in standby mode. Someone has suggestions how remove/change what I did? Thank you very much.

    Hello

    Change your screen saver works.

    http://Windows.Microsoft.com/en-us/Windows/use-pictures-as-screen-saver#1TC=Windows-Vista

    http://Windows.Microsoft.com/en-us/Windows/turn-screen-saver-on-off#1TC=Windows-Vista

    See you soon.

Maybe you are looking for

  • How to get rid of the icon buttons when you type?

    Could someone explain to me how to get rid of these little icon buttons that keep popping up on the screen when I use my keyboard. Read on this forum that they are something to do with "apps"? What information and icons that appear when you drag to t

  • Video input with Qosmio G20-108 problems

    HelloI try to connect a video recorder/player for my Qosmio G20-108 and have had no luck so far.Tried the red-yellow-white cables that came with the laptop, can get sound via the laptop, but no image. Then tried the input cable tv/satellite of the RG

  • Savings set number of files

    I created a vi to control an instrument, I want to let this instrument on indefinetly until I hit a stop button to turn the unit off. Also this vi saves the data to a file. I created a record button which begins to save a file, when this is done the

  • Windows Media Player without his image

    When you start a file or a DVD in windows media player, I only hear but no picture. He has always worked in the past, but now, suddenly, no longer works. I use WINDOWS XP

  • Limited connectivity or none - don't need to fix wireless several times before, it connects to a non-APIPA address

    On the DSL home network, I have a hard time with the connection from my laptop Windows XP Pro SP 3 to Westell A90 modem.  Attempts to connect result in messages "limited or no connectivity" with postings from IP starting with 169.254.  If I use Windo