Get the active navigation page in 10 blackberry app


I tried to reproduce this and also got the same error message. It seems that NavigationPane is not properly registered in the Cascades.

Added qmlRegisterType() fixed it:

ApplicationUI::ApplicationUI(bb::cascades::Application *app) :
        QObject(app)
{
    // prepare the localization
    m_pTranslator = new QTranslator(this);
    m_pLocaleHandler = new LocaleHandler(this);
    if(!QObject::connect(m_pLocaleHandler, SIGNAL(systemLanguageChanged()), this, SLOT(onSystemLanguageChanged()))) {
        // This is an abnormal situation! Something went wrong!
        // Add own code to recover here
        qWarning() << "Recovering from a failed connect()";
    }
    // initial load
    onSystemLanguageChanged();
    //--------------------------------------
    qmlRegisterType(); <---------------- ADDED    //--------------------------------------

    // Create scene document from main.qml asset, the parent is set
    // to ensure the document gets destroyed properly at shut down.
    QmlDocument *qml = QmlDocument::create("asset:///main.qml").parent(this);
    qml->setContextProperty("_app", this);

    // Create root object for the UI
    AbstractPane *root = qml->createRootObject();

    // Set created root object as the application scene
    app->setScene(root);
}

Another workaround solution is switching from QObject in settings:

    Q_INVOKABLE void test(QObject *paneObj);

...

void ApplicationUI::test(QObject *paneObj)
{
    NavigationPane *pane = qobject_cast(paneObj);

    Page *page = Page::create()
        .content(Label::create()
            .text("Test"));

    pane->push(page);
}

I have attached my test project (using NavigationPane * as a parameter) to the post.

UPD: created a JIRA ticket: https://www.blackberry.com/jira/browse/BBTEN-1801

Tags: BlackBerry Developers

Similar Questions

  • How to get the active screen of the BlackBerry application?

    Hello

    I'm trying to get the active screen of the BlackBerry application, for example the home menu.

    I tried to use the screen ActiveScreen = getUiEngine () .getActiveScreen () in my code, but found error during execution.

    I know that this is because the getActiveScreen() method applies only for screens created by this application.

    So is there a way to capture the screen of the other application, for example the mail filter BlcackBerry?

    Thank you.

    Not wanting to not to repeat me, but there is no general way to get access to the Screen of another application object, unless you are on good terms with this application - which basically means that you have access to the instance UiApplication.  You cannot ask the operating system to get that to you, you must have a way to get you.  Which implies execution of something in the context of the Application.

    Even in this case, you may not be able to do what you want.  You will probably need to iterate over the screen and content managers and find the field you want, and even if it covers anything you understand (like BasicEditField) it still cannot handle standard things like setText in a way that is useful to you.  And you might not find fields you recognize, if you access a browser screen, I think you'll find there \are RIM not standard fields in there, so there is nothing you can interact from a standard application of the RIM.

    If you want to do this kind of treatment in General, that will deal with in a number of applications, you should watch event Injection.

    There may be other options for specific applications.  For example, you can simulate of electronic mail by writing a program that sends an email, rather than interact with the BlackBerry.  Or for the same application, if you try to test the headphones, then the listener has access to the UiApplication.  Aye, we be able to help you find approaches less General in some places, if we understand what you're trying to do.  This is the reason for the specific question that I asked in my last post.

    Regarding your second question

    "Another question is, can two separate applications of myself interaction by the user interface?

    For example, to call app2. ButtonField.click () or something. »

    It is in fact just an extension to your first question.  The difference is that you will find the UiApplication associated if both applications are on good terms, in fact you can "spend" the UiApplication via a Global event.  Once you have the UiApplication, you can use

    .invokeLater (...)

    to run the user interface code in the other Application.

    But I look at injector event because I think it might be a more general solution.

  • Could not get the sign in page - error message "object moved here."

    I am unable to get the sign in page to connect to my live account. I get the message "Object moved to here" and Microsoft Live Hotmail was not able to complete this form - Contact Microsoft

    Hello

    I'm sorry, but we cannot help with hotmail problems in these forums in response to vista

    Please repost your question in hotmail in the hotmail link below forums

    http://windowslivehelp.com/product.aspx?ProductID=1

  • When I try to bookmark a new page, I don't get the window of "Page bookmarked or edit this bookmark. I t place the site in my favorites, but I have to go to "organize" bookmarks in order to put it where it belongs.

    When I try to bookmark a new page, I don't get the window of "Page bookmarked or edit this bookmark. I t place the site in my favorites, but I have to go to "organize" bookmarks in order to put it where it belongs.

    Which extensions you have installed?
    It seems to me that some sort of 'social bookmarks' extension changed this window edit this bookmark, based on the presence of this line of "Rating" at the bottom.

  • How can I get the activation code for PC Defender?

    I have a dell netbook.  It has viruses on it.  PC Defender is constantly on it saying that if I put in the activation code sent to my e-mail address, it will remove the virus.  The code was never sent.  I can't access it from my netbook, but I can check my email from my other laptop.  How can I get the activation code so can clean my netbook?

    PC Defender is a rogue security application.  It is also a malware!  You can remove it by following these instructions:
    http://www.bleepingcomputer.com/virus-removal/remove-Windows-PC-Defender
    Trader2100

  • did not get the activation key with my Windows 7 Home records. How do without pay $49 for technical support?

    did not get the activation key with my Windows 7 Home records. How do without pay $49 for technical support?

    You can connect to the Microsoft Store and retrieve your product keys:

    Find your key product if your purchase of Microsoft Store:
    http://store.Microsoft.com/Help/FAQ?Err=T2#AT2

  • Is it possible to get the activation code of the older PC so that I can use it in my class?

    Original title: Activation of Windows 8.

    If there is some time I had windows 8 pro to use in my construction of future games. Not knowing I could install it on 1 computer (thought it would be at least 2) I installed it as a test on my desktop PC previos where it has not yet run properly cause it was an older model (and if you haven't used since then, cause I have a laptop with Windows7). But now my PC gaming is finished and I suddenly find I could activate only on 1 PC.

    So my question is. Is it possible to get the activation code of the older PCs (that I use even more, maybe even remove it) so that I can use it in my class? Or that the activation code and the money just went in the toilet?
    I could install Windows 7 to 2 different PC-s(didn't try more cause there was no need) with no problems and it wasen can't pack family, why is Windows 8 different? Sometimes errors occur.
    Ask cause I went all on buy the parts, I have no money to buy a new copy of windows 8.
    Awayting for your answers.
    Thank you
    Edit! Maybe I'm a solution. Going to try it out after I return to work.
    It's the solution

    "I have Windows 8/8 Pro is installed on my PC." If I replace with another PC, can I install my copy of Windows 8 on my new PC until I remove it from the other? »

    Yes. The highest point is the one you mentioned: you must remove Windows 8 from your old computer before you activate on the new. In other words, you can have your copy of Windows 8 or Windows 8 Pro running on a single computer at a time.

    Another thing to keep in mind is that if you have installed an upgrade copy under license of Windows 8 on a computer and then you want to use it on another computer, the same 'upgrade' rules apply: you must have a previous version of Windows on the computer before you install Windows 8. You can ignore this rule, if you started with Windows 8.1

    Important: You can't "move" Windows 8 or Windows 8 Pro on another computer if your computer is pre-installed with Windows 8. Your copy of Windows 8 is what OEM licensed which means that you are allowed to use Windows 8 on the computer on which he came already installed on.

    "How many times can I reinstall Windows 8 on another computer? Assuming I follow the rule 'uninstall old installation', peux I keep installing Windows 8 on different computers? »

    There is no limit to the number of computers that you reinstall Windows 8 on as long as you follow the rules, that I discussed in the last question.
     

    Hi NeemeK,

    We appreciate the research you have done to find more information on this issue. The information you found were correct.

    OEM product key can only be used with the computer on which it is installed on.

    When the operating system is not active (uninstalled) in the old computer, you can install it on the new computer. This applies to any number of computers you use.

    If you get any errors, you can perform the activation of the phone.

    http://support.Microsoft.com/kb/950929/en-us

    Hope that the information provided is useful. Do not respond if you need more help.

  • I have upgraded to Windows 10. I have Adobe InDesign CS3. It runs but requires a reactivation. I get the activation message - no connection.

    I have upgraded to Windows 10. I have Adobe InDesign CS3. It runs but requires a reactivation. I get the activation message - no connection. There is no other way to activate - no phone support. I also tried uninstalling and reinstalling. It makes no difference.

    Hi Peter,.

    Thanks for your time. I solved this by chatting to the support team. I have

    convince them to issue me with an authorization code that you normally would

    Get the phone activation which is no longer supported in the United Kingdom. This seems

    having solved the problem of Activation.  I suspected that the final result would be

    be that they'd tell me that CS3 doesn't run on Windows 10 but for now

    It seems OK.

    Kind regards

    Dave

  • Where can I get the activation key for Windows 8 build 9800?

    I can't have the activation key for windows 8 build 9200? Help me please

    If you purchased Windows 8:

    Go to the order summary page, you can find your product key:

    https://www.mswos.com/

    If Windows 8 is preinstalled on a new computer that you own:

    With Windows 8, Microsoft changed stickers that have the product key that the user must type in during the installation of the operating system of new embedded BIOS product key. The idea is that by eliminating the tile, you eliminate one of the easiest ways for nefarious users get a legitimate product key. The sticker also eliminating product key removes any concern that the vignette could get damaged while at the same time eliminating the long and irritating the process of typing in various letters and numbers in the installation of the operating system.

    If the user has to reinstall the operating system on a computer with Windows 8, the installation process automatically captures key software product of the motherboard BIOS without input from the user. This means that these stickers familiar windows product key will no longer appear on Windows 8 computers.

  • Getting the activity of contact data?

    Hi all

    In trying to get the ProcessedActivity of database entities, I always get 0 record.

    Should be a config change to record activities?

    Moreover, in trying to get the RESTful API activities, I send requests to each contact id and each type of activity of the 8 types (emailOpen emailSend, emailClickThrough, emailSubscribe, emailUnsubscribe, formSubmit, webVisit, campaignMembership).

    But each application would expire.

    When obtaining accounts and Contacts, it works well, and records of result would be returned in a few seconds.

    So, what should I do especially for activities?

    Any suggestions?

    Thank you

    Biao

    Extraction activities in bulk via SOAP by the ProcessedActivity only works if you have the internal queue previously activated for you, and you have the activity according to the internal events that log information that him. It will store data up to 45 days. So 0 results could mean it is not enabled, your internal events are disabled (or external calls in them have been deleted) or your date range is beyond the data you have, or simply the filter on your query returns no data. You can read more here:

    The queue of activity processed (AQP)

    And here:

    Eloqua API how: retrieve data of activity through the API

    To make queries through the REST, if you get HTTP500, try again with a shorter period of time and a small page to test. If you're pulling for one year (maximum) and contacts a large number of activities, the db simply may not have able to extract the data in time. To clarify on the levels of support for REST 1.0 - product compatible will address all the problems that you encounter with him and log defects or feature requests as needed. From there on, dev may specify what level of action, we can provide on this particular workflow or an end point. REST 2.0 is not supported because it is not contractually stable and may change between versions. If the behavior/feature you need is available at REST 2.0 and 1.0 not, then certainly, you can consider using it, but it is not recommended because of this reason.

    For activity in general, exports in bulk 2.0 export activity are available. They have the advantage to be more effective than the REST, which is 1 call per contact by type of activity, and support the date more 1 year ranges. During the SOAP/QIP method, there the advantage of not requiring installation and changes to your integration area, as well as no drop of data after 45 days.

  • How to make a web page to get the new tab page?

    I go to a web page a lot, but it does not appear as a tile on the new tab page. I got it in the past, but he went. I would like to get back into my tiles.

    See this - https://support.mozilla.org/en-US/kb/customize-new-tab-page#w_pin-a-tile

  • Cannot read e-mail messages Hotmail, I get the frame of page but not the text of the E-mail

    Dear anyone.

    Since May 4, I was unable to read Hotmail emails in Firefox, I had to download Google Chrome just to read emails (yuck!) Before May 4, everything was fine. Now, I get the page frame, i.e. the part that said Hotmail to the top my list of Email subfolders to the bottom of the left side and the text of Microsoft on the bottom. The central area, which must contain the text of the may E real (and graphics of course if there is) is empty. I tried clear the cache and history, clear cookies, just like that, no joy.

    What has been the change suddenly from Hotmail, which has caused this? It is NOT a change in Firefox that I have not changed my version and it worked perfectly until today, may 4.

    Your puzzledly

    ulrichburke

    Sorry to disappoint you, but I'm a man. But thank you for your comment.

    Could you please mark this issue as RESOLVED for other users can come here to get the solution?

    Thank you.

  • Just downloaded Firefox on new PC; Unable to get the Firefox start page. I just get the Firefox "subject: Home" page. Help me to access the start page.

    I used Firefox earlier and you want to use again on my new Windows 7 pc. ' ' I downloaded Firefox, access the icon on my desktop and when I click it, I get the home page "about". How can I get the start page so I can load my favorites, etc.

    Subject: House is the new Firefox Start Page, from Firefox 4.0 in March. You can set any page you want as your home page.

    See How to set the home page

  • Reference Dell - who do I call to get the activation on the left 6 days of vista help

    I hacked on computer dell laptop inspiron 1420 and blocked password, the computer for all purposes is dead!

    I out the hard drive and inserted in a usb enclosure and installed the vista that was on the dell for hp pavilion desktop.  I'm an injured worker, Corp. will not support of human rights and therefore CAT must comply the Corp. who pay them, I have no income, dependent on family and friends, social services are so corrupt, I refused to comply with their conditions of dictatorship and claims, that violate my constitutional rights Canadian.

    I paid almost $1300.00 for Dragon Naturallyspeaking Professional 10 and it will not work on windows 8, unless I pay Dragon $200 more to upgrade, without money, it's like a dream to get this money and dell and Microsoft on a day of phone calls would give no rights of activation on the HP, even if it is the only computer in use.

    Help.

    I out the hard drive and inserted in a usb enclosure and installed the vista that was on the dell for hp pavilion desktop.

    Hello

    The Dell laptop was not "for all purposes is dead!"

    What you had to do was to reinstall the operating system.

    __________________________________

    You can't legally transfer the pre-installed operating system that came with the Dell machine to an HP machine.

    Read this information:

    "If the computer laptop/computer came with preinstalled Windows operating system (Dell, HP, Acer, etc.), this product key provided with your computer/laptop to the OEM license preinstalled and is not transferable."

    OEM license/product key (systems of operating pre-installed on Dell, HP, etc.) is related to the first machine it is installed on and dies when dies of this machine.

    Only retail Operating System license that you buy and install yourself, are allowed to be transferred to another machine.

    And retail licenses also can be installed on a machine at one time"

    ________________________________

    Reinstall the Systwem running on Dell machine.

    You can contact Dell and ask them to send you a set of recovery disks (if you don't have them).

    They should do this for a small fee.

    You should have them if you reinstalled on the HP computer.

    If you have moved single hard drive from one to the other > put the hard back where it belongs and see if pressing F8 at startup > then selecting the Options Advanced startup starts the reinstall on the Dell computer.

    "How to replace Microsoft software or hardware, order service packs and replace product manuals.

    http://support.Microsoft.com/kb/326246

    .

    Some manufacturers have more available Vista recovery disks.

    If this happens, you may need to try this instead:

    You can also borrow and use a Microsoft Vista DVD, which contains the files for the different editions of Vista (Home Basic, Home Premium, Business and Ultimate) must be installed. The product key on your computer / Laptop box determines what Edition is installed.

    Other manufacturers recovery DVDs are should not be used for this purpose.

    And you need to know the version of 'bit' for Vista, as 32-bit and 64-bit editions come on different DVDs

    Here's how to do a clean install of Vista using a DVD of Vista from Microsoft:

    "How to do a clean install and configure with a full Version of Vista '

    http://www.Vistax64.com/tutorials/117366-clean-install-full-version-Vista.html

    And once the operating system is installed, go to your computer manufacturer's website and get the latest drivers for your particular model or laptop computer.

    And phone Activation may be necessary when you use the above installation method.

    "How to activate Vista normally and by Activation of the phone '

    http://www.Vistax64.com/tutorials/84488-activate-Vista-phone.html

    See you soon

  • Hard drive has been replaced and get the activation message

    My hard drive crashed (again) and the GeekSquad replaced the hard drive and reloaded the OS from a disk they had in the store.  I get a message from windows activiate.   I have the restore CD but did not have them when the car crashed.   How can I find my activation code?

    For activation look side on the box office or a cell phone, the bottom of the laptop.

    How to activate Windows 7 or Vista manually (activate by phone)
    1) click Start and in the search for box type: slui.exe 4
    (2) press the ENTER"" key.
    (3) select your "country" in the list.
    (4) choose the option "activate phone".
    5) stay on the phone (do not select/press options) and wait for a person to help you with the activation.

    Also:
    How to resolve common activation problems
    http://adacosta.spaces.live.com/blog/CNS! E8E5CC039D51E3DB! 67219.entry? a = 584475978

    How to activate Windows Vista by phone
    http://support.Microsoft.com/kb/940315
    http://www.mydigitallife.info/2008/10/13/how-to-activate-Windows-Vista-by-phone-activation/

    Microsoft Activation centers worldwide telephone numbers:
    http://www.Microsoft.com/licensing/existing-customers/activation-centers.aspx
    (This site is for activating Volume License, but if you call, they will help you)

    The phone number is not working:
    Microsoft Wordwide contacts: http://www.microsoft.com/worldwide/default.aspx

    JS
    http://www.PAGESTART.com

    Never be afraid to ask. This forum has some of the best people in the world to help.

Maybe you are looking for