Destroy the NavigationPane Page when used of a Peek

Hello
It is possible to destroy a page when the rear sweeping gesture (peek) is used to jump to the page of the NavigationPane? I don't want to use the property ' peekEnabled: false "I like the gesture of glance. I can't use the signal to onPopTransitionEnded I don't know the id of the page that will be skipped (using ComponentDefinition).
The following is a snippet of the code:

QML File 1:
NavigationPane {
        id: navPane
    CustomControlPage{

        }
}

CustomControlPage.qml
Page{
...

  onTriggered:{
// I need to create a new Object everytime and that is causing the  problem when peek gesture is used rather than back button as with backButton, I can just use paneProperties and then do pageID.destroy();

    var newPage = newCustomPage.createObject();
    newPage.variant1 = "hello,";
    newPage.variant2 = "world!"
    navPane.push(newPage);
  }
  attachedObjects:[
   ComponentDefinition{
    id: newCustomPage
    source: "newCustomPage.qml"
   }
  ]
}

newCustomPage.qml
Page {
 id: newPage
 property variant variant1
 property variant variant2
...

paneProperties: NavigationPaneProperties{
  ActionItem{
   title: "Back"
   onTriggered {
      newePage.destroy();
   }
 }
}
}

Thank you!

Yes, that's correct. 'page' is a parameter, it points to the page that you need to destroy.

popTransitionEnded is called when the page is closed using a "back" button or closed using the gesture of glance.

It cannot be called if you delete the page programmatically, I'm not sure about this.

Tags: BlackBerry Developers

Similar Questions

  • BlackBerry Smartphones can visit the web page when the radio is off

    I installed NetworkAcc on my BlackBerry Storm 9530 with OS c. 5
    and now I can't use my web browser. I get the error message:
    "Cannot see the web page when the radio is off, please turn radio".
    on and try again. »

    I don't have any idea how to enable or disable the radio. What is the problem and
    How should I do?

    I'm not familiar with "NetworkAcc" but to turn on your wireless radio, you need to go to 'Manage connections' and check the Mobile network (and also wifi or bluetooth if you want to use wifi or bluetooth.)

  • How can I redirect to the login page when the client disconnects?

    I use {module_logout}, how do I redirect to the login page when a client disconnects?

    Thank you for posting.

    You can redirect the user to the login page using a small java script code. Please visit the following link http://kb.worldsecuresystems.com/598/bc_598.html#main_Redirecting_to_another_page

    See you soon,.

    Scott Raj Rouanet

  • How can I get rid of the ball of small tennis on the login page when starting?

    How can I get rid of the ball of hail [tennis?] on the login page when starting? Thank you.

    If you go to the users of the system of preferences. You will see a box with a picture of the ball. If you click on it, you can ether edit photo or choose one of the other ones...

  • Is it possible to blackBerry smartphones can remove the BBM5.0 when using OS5.0?

    Is there a way to remove the BBM5.0 when using OS5.0? I tried using DM6.0 but BBM is marked as a component of basic impossible to remove.

    I hate BBM in general because it is always on. I don't want to install an older version.

    If anyone can help me, thanks in advance.

    lusilveira wrote:

    Is there a way to remove the BBM5.0 when using OS5.0? I tried using DM6.0 but BBM is marked as a component of basic impossible to remove.

    I hate BBM in general because it is always on. I don't want to install an older version.

    If anyone can help me, thanks in advance.

    • with a few OSes 5.0.X.X, BBm is a basic application and cannot be deleted.
    • BUT the other OSes, the BBm 5.0.X.X became an addon application and can be removed. (i.e. 5.0.0.43 6 and 5.0.0.462)

    If you have the first category OS, I suggest you try and install BBm for example using AppWorld. Perhaps by upgrading BBm, it will become an add-on.

  • I want my text box to resize the web page when you add lines of text

    Hi all

    I'm new to Muse, I am quite familiar with illustrator and photoshop. My question:

    I downloaded a model, and it allows me to learn and practice the muse a bit. I want to know how I can add a text box that automatically resizes the Web page when text lines are added. Currently my text box just go to the footer when I type. Which setting I have to look?

    Thanks to you all!

    Don't forget your footer items are marked as a footer element and that your text box is not.

    Right-click on the components and check or uncheck the footer element

  • I don't have the Edit option when using my iPad

    I don't have the Edit option when using on my iPad

    The forum of cloud is not on the use of individual programs

    The forum of cloud is on the cloud as a delivery & installation process

    If you start the https://forums.adobe.com/welcome Forums Index

    You will be able to select a forum for the specific Adobe products you use

    Click on the symbol "arrow down" on the right (where it says all communities) to open the drop-down list and scroll

  • How to manage the photos Lightroom when using 2 computers, keeping any changes made on one or the other?

    Based on http://forums.Adobe.com/thread/1308132?TSTART=0 I decided to add each question separately:

    Hello, I am very interested in buying Lightroom 5.2. I tried the RC that was missing today. Yet, I have several questions that I can't find really good conclusive answers, I'd like to get an answer before buying LR. Please do not write maybe like this or that (assumptions), because I don't want to start my entire workflow and then realize that I have to change all around, please reply, if you know for sure that something works and you are, preferably, using this method too.

    Is the big question, where I want to especially a conclusive answer:  How to manage the photos Lightroom when using 2 computers, keeping all the changes made on one of them, using the same photos for editing. I'm not going to use DNG. Details: I mainly use my old MacBook Pro, but I wish I could use my PC as it is much better (card: i5 2500K, 16 GB of RAM, SSD, USB3, nVidia GTX 560 TI etc.). I have 2 external HD that I could use, one for backup and one for the actual Photos/changes. I you will probably need to use as my internal HDs are fairly complete and I cannot be the kind of things simply delete or move to one (developer, without loss of music, programs etc.).

    On this basis, how do I save all such Photos folder (pictures and retouching and preferably presets too)?

    According to me, that it should be possible to work cross-platform without having to create a link to the files each time, or without having to keep export/import of the catalog, keeping the single catalog and the picture library on an external drive that is then switched between systems as needed.

    Obvious first requirement is an external drive that is formatted in a way (for example, FAT32) that it can be used on both platforms in read/write mode. Given that, if the catalogue AND folder parent si le catalogue ET le dossier parent images are both set to the same level in a global parent folder, then it should be possible to take advatage of ability of Lightroom to use relative paths instead of absolute paths to detect the images, no matter if the player is named (Mac) or lettering (PC). This is how "export as catalog of ' works, that is, it creates a 'package', alias a parent folder, containing the catalog and a replica of the folder hierarchy to exported along with the catalog images. Take this 'package' to another system (same OS or not) and "it works" even if the drive letter is different or the operating system is different... because the relative path of the image catalogue is always the same.

    I have not tested this cross-platform (if I have between various PC systems with letters of different readers) so for me it's still just a theory, but there may be others who have done this successfully.

  • When I click on a link in an email, Firefox opens a new tab, BUT instead to use the new tab to go to the new page, it uses a tab for the new page.

    So if I'm not careful I eventually lose a page of the site I wanted to keep available, and I also have a new tab that does nothing about it.

    Hello

    Try Firefox Safe mode to see if the problem goes away. Firefox Safe mode is a troubleshooting mode that temporarily disables hardware acceleration, restores some settings and disables add-ons (extensions and themes).

    If Firefox is open, you can restart Firefox Safe mode in the Help menu:

    • Click the menu button

      click Help

      then select restart with disabled modules.

    If Firefox does not work, you can start Firefox in Mode safe as follows:

    • On Windows: Hold down the SHIFT key when you open the desktop Firefox or shortcut in the start menu.
    • On Mac: Hold the option key during the startup of Firefox.
    • On Linux: Exit Firefox, go to your Terminal and run firefox-safe-mode
      (you may need to specify the installation path of Firefox for example/usr/lib/firefox)

    When the Firefox Safe Mode window appears, select "start mode safe."

    If the problem is not present in Firefox Safe Mode, your problem is probably caused by an extension, theme or hardware acceleration. Please follow the steps described in the section Troubleshooting extensions, themes and problems of hardware acceleration to resolve common Firefox problems to find the cause.

    To exit safe mode of Firefox, simply close Firefox and wait a few seconds before you open Firefox for normal use again.

    When find you what is causing your problems, please let us know. This might help others with the same problem.

  • Why Firefox will open link hotkeyed a Web site as a Web page on my PC but download a php file that opens in the language machine when using Firefox on my Mac?

    If I use Safari as my browser, the hotkey opens on another Web page, as it should, without going through a php file download process when the Firefox browser is used. What gives?

    Oops, I need to sign up for anything on the site...

    Here are a few things you can do additional tests:

    (1) when you download the newsletter, it is in PDF format?

    (A) on your Mac, you may need to name the file downloaded with a .pdf at the end of the file name extension so that it can open in Adobe Reader (or an extract or other PDF reader that you use).

    (B) on your PC, can you say display the newsletter if it's displaying in the plugin Adobe Acrobat, PDF Viewer integrated Firefox or another plugin?

    (2) more suggestions if necessary.

  • How to return to the previous page when I'm surfing the web; I; m used to have the arrow "back"!

    In Internet Explorer, I BACK and forward arrows when looking on the internet, like to check a site such as Wal - Mart.com for an article catalog, but in Mozilla, I can't go back to the previous page without losing the entire program. It MUST be a secret I'm missing... Help!

    You have the toolbar with the URL? If this bar is absent, one of them try to restore:

    • Right click on a zone empty of the tab bar > Navigation bar
    • Press the Alt key to activate the classic menu bar > view > toolbars > Navigation toolbar

    If you do not have menus or toolbars, try the key F11, which toggles between full screen and normal views.

    You can get the button?

    If you have the Navigation toolbar, but the button is missing, you can restore the default configuration using the personalization feature. Either:

    • Right click on a zone empty of the tab bar > customize
    • Press the Alt key to activate the classic menu bar > view > toolbars > customize

    In the dialog box, click Restore Default Set.

    A little luck?

    Furthermore, by default, these keyboard shortcuts also will sail "return":

    • Return key back, when you're not in an edit control (this can be disabled if it is causing problems, see browser.backspace_action)
    • ALT + left arrow (Alt + right arrow goes forward)
  • How to prevent large gaps on the Web page when you use the behaviours slide?

    I searched the forums for similar problems with application behavior slide to the elements through the DW CS5 interface and find a useful post titled "problem with Spry Applying"Slide Effect"so now my slide effects works the way I want to, except instead of dragging out a legend after clicking on an image I slip on a list of text items when you click on a section of text.  It works, but there is a gap when the first load of the Web page. How can I remove/avoid this great whitespace to appear?

    < ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""

    " < html xmlns =" http://www.w3.org/1999/xhtml ">

    < head >

    < meta http-equiv = "Content-Type" content = text/html"; Charset = UTF-8 "/ >"

    < title > test Document < /title >

    "<!-< script type =" text/javascript"src ="... / SpryAssets/SpryEffects.js "> < / script > - >"

    < script src = "SpryAssets/SpryEffects.js" type = "text/javascript" > < / script > "

    < script type = "text/javascript" >

    function MM_effectSlide (targetElement, duration, of, to, toggle)

    {

    Spry.Effect.DoSlide (targetElement, {duration: duration,:, to: to, turn on/off: toggle});

    }

    < /script >

    < / head >

    < body >

    < p > < / p >

    < p > < / p >

    < style type = "text/css" >

    #LOdiv {visibility: hidden ;}}

    #Countries {visibility: hidden ;}}

    < / style >

    < p > < / p >

    < p > < / p >

    (< div id = "Latte" onclick = "MM_effectSlide ('LOdiv', 1000,"0% ", 100%", true) ">"

    < p > < strong > drop-down list One + show < facilities > < / p >

    < / div >

    < div id = "LOdiv" >

    < div >

    -Item A < br / >

    -Point B < br / >

    -Point C < br / >

    -Section D < br / >

    -Point E < br / >

    -Item F < br / >

    -G spot < br / >

    -Point H < br / >

    -I point < / div >

    < / div >

    < / div >

    (< div id = "ListTwo" onclick = "MM_effectSlide ('country', 1000,"0% ", 100%", true) ">"

    < p > < strong > list two + show < facilities > < / p >

    < / div >

    < div id = 'Country' >

    < div >

    -USA < br / >

    -Germany < br / >

    -France < br / >

    -Italy < br / >

    -Japan < br / >

    -China < br / >

    < / div >

    < / div >

    < span style = "width: 990px;" height: 21px' > < img width = 990 height = 21

    SRC = "image386.gif" >

    </span >

    < / body >

    < / html >

    Hello

    in my opinion, this technique is not designed for the two panels. To do this you must use the "Spry several sliding elements"-technique in which panels will be triggered by the individual buttons. "" Here is the link for it:

    http://labs.adobe.com/technologies/spry/samples/effects/multiple_slides_sample.html.

    Hans-Günter

  • HP laserjet M425dn MFP 400: white pages when using the copy flow tray

    Our HP laserjet MFP M425dn of 400 printer suddenly started printing blank pages when I food pages in the sandbox of copy on top of the lid and go through the routine of copy 'optimize '.  When I place the original on the glass, then select copy, copies are missing from the top of the page.  I spent around and in the settings and made sure that I selected the normal size of plain paper (not legal, etc.), but have not solved the problem.  Any suggestions?

    There is a "Reset Factory Default" option in the Tools menu. Or you can reset the printer. This forum post has the details: http://h30434.www3.hp.com/t5/Printer-All-in-One-Install-Setup/Cold-Reset-HP-LaserJet-Pro-400-MFP-M425dn/td-p/3105277

  • Where do I put the AutoFill feature when using Firefox?

    You people do a great job of describing 'How to use Auto Fill'... but nowhere in this article does say WHERE - to implement the feature when using Firefox.

    How and where can I find the setting?

    Thank you.

    PS: maybe that should be in the article somewhere.

    What about filling the data in a form (input field) on a web page?

    See:

  • Why Firefox brings to the top of the home page when I move my mouse?

    Nice day:

    When I reduce to Firefox at the moment where I move my mouse to see other documents, Firefox brings to the top of the page and it is very annoying because I have to permanently reduce it again and again...

    I would appreciate help with this issue.

    I thank very you much for your attention to this request.

    Joyce Meier
    [email protected]

    Try Firefox Safe mode to see how it works there.

    A way of solving problems, which disables most of the modules.

    The problems of Firefox using Firefox SafeMode

Maybe you are looking for