no matching feature for call to 'bb::cascades::QmlDocument::createRootObject().

-The application written for 10.0.6

-Installed 10.0.9 SDK

-Read:

https://developer.BlackBerry.com/Cascades/documentation/dev/upgrading/applicationchanges.html

-Now:

   Model *model = new Model();

    QmlDocument *qml = QmlDocument::create("asset:///main.qml")
       .property("cs", this)
       .property("model", model);

       if (!qml->hasErrors()) {
           Page *page= qml->createRootObject();
           if (page) {
               setScene(page);
           }
       }

"BlackBerry 10 SDK native 10.0.9.386" is selected in my toolbar.

The line:

Page * page = qml->() createRootObject;

... is highlighted in red with the error:

no matching feature for call to 'bb::cascades::QmlDocument::createRootObject().

Before that, there was a line highlighted in red in one of my dealing with .h files who complained about a SQL question, but the line had nothing to do with SQL. I did a cleanup in the IDE and which fortunately went.

You use the right namespace? BB::Cascades and make sure you import

Tags: BlackBerry Developers

Similar Questions

  • How to use existing java features like call webservice etc in webworks 2.0

    I have two or three existing features like calling a webservice /construct and sending a xml file to a url etc... developeb in java base. I want to use these features in my blackberry application 2.0 10 webworks. is it possible to do?

    You cannot call Java API in WebWorks BlackBerry 2.0 application. This SDK is intended for BlackBerry 10 where the Java Runtime does not exist.

    For BlackBerry WebWorks 10 applications, you can create plugins in the native (C/C++) layer, or code directly with Javascript. JavaScript offers features POST quite directly to send messages / data URL via the XMLHttpRequest object that would probably be a good fit.

  • How to call the function cascade BlackBerry

    I begineer in blackberry c ++.

    I do two class is testobject and second in test .i call the onther text function average () and nexttext();

    so please how to call this function.

    // Default empty project template
    #include "TestObect.hpp"
    
    #include 
    #include 
    #include 
    
    using namespace bb::cascades;
    
    TestObect::TestObect(bb::cascades::Application *app)
    : QObject(app)
    {
        // create scene document from main.qml asset
        // set parent to created document to ensure it exists for the whole application lifetime
        QmlDocument *qml = QmlDocument::create("asset:///main.qml").parent(this);
    
        // create root object for the UI
        AbstractPane *root = qml->createRootObject();
    
        // set created root object as a scene
        app->setScene(root);
    }
    
    void TestObect::test(){
    
        qDebug()<< "****************Naveen";
    }
    

    I insert also declared in the header file.

    Q_INVOKABLE Sub test();

    then I create another test class.

    /*
     * test.cpp
     *
     *  Created on: Apr 2, 2013
     *      Author: nksharma
     */
    
    #include "test.h"
    
    test::test() {
        // TODO Auto-generated constructor stub
    
    }
    
    void test:: nexttest(){
        qDebug()<<"***********Next test*********"
    
    }
    test::~test() {
        // TODO Auto-generated destructor stub
    }
    

    error in the file namespace,

    here in file herder

    the namespace error

    /*
     * test.h
     *
     *  Created on: Apr 2, 2013
     *      Author: nksharma
     */
    
    #ifndef TEST_H_
    #define TEST_H_
    
    class test {
    public:
        test();
        virtual ~test();
         Q_INVOKABLE void nexttest();
    };
    
    #endif /* TEST_H_ */
    

    You have a space between the colon and the n in:

    void test:: nexttest()
    

    Another thiing, if you are using Q_INVOKABLE, you must declare Q_OBJECT in your front header file public:

     


    If you're still having problems, try to clean up the project with Project > clean...

  • How to get the configuration of the feature for UIMap value?

    Hi all
    Right now, I do a function that needs to get the value of configuration of the feature for the UIMap, anyone have the solution for this or is it just imppssible?

    You can get the values of business Invoking 'Base' = "C1-GetFeatureConfiguration" and then call the user interface mapping, where the BS is included.

  • Where can we post requests for features for TVs?

    Anyone know where can post us requests for features for TVs?

    For example, it would be nice to access usb connected to the TV via network.

    You can post it here hoping that someone from Toshiba read this.

  • Rates for calls to the Canada

    Rates for calls to the Canada Skype is 1.7 ¢ / minute + conection expenses is 3.6 cents. I called just 20 seconds and my account deletes 0.5 EUR I donts understand. I tried 2 times, one time call to the fixed phone, other phone, mobile. The same situation. I don't want to call because I don't understand, how much I pay to this topic!

    Hello and welcome to the Skype community.
    Cost of call Skype are per minute or fraction of rounding to the full minute.

    TIME ZONE - US EAST. LOCATION - PHILADELPHIA, PA, USA.

    I recommend that you always run the latest version of Skype: Windows & Mac

    If my advice helped to solve your problem, please mark it as a solution to help others.
    Please note that I usually do not respond to unsolicited private Messages. Thank you.

  • Default values for FaceTime for Lync for calls

    Hi guys

    I'm having a nightmare here with Lync and FaceTime. Whenever I put FaceTime as my "default for calls" it changes again in Lync whenever I get close and reopen the app Lync did the same when I change the phone FaceTime app, it returns just to Lync.

    I'm not categorically use Lync to my voice calls. Fortunately, I was using FaceTime until I installed Lync to my Office365 conference calls. I'm not the only person having this problem I saw another question in the community called "Lync hijacs FaceTime calls the default" or something similar. Unfortunately, there was no resolution.

    This issue is seriously dampening my productivity and, quite frankly, annoying the heck out of me. If your ability to help out me here I'll be eternally grateful.

    Thank you very much

    HulkPants

    Although the problem is not the same, please follow the instructions in this article to support to reset the launch Services database.

    Instead type the command as shown in the article, I suggest that you copy and paste the web page in the Terminal window. Make sure you only select the whole line before copying. One way to do that is to triple - click anywhere in the line.

    If you do not already have a current backup, back up all data before proceeding. You should perhaps log out or restart to see a change.

  • How to drag the apps? to force no click trackpad... I think they remove this features for elcapitan

    How to drag the apps? for a force not click trackpad...
    I think that they remove this features for elcapitan

    Select the application, and then hold down the trackpad (click), pressed with the left hand, while you use your right hand to drag the app.

    Note: This creates an alias to the place where you drag where you want to move , you also need the CMD key at the same time.

  • I am traveling to the United States to Australia next spring. I'll be able to use my iPhone AT &amp; T 6 + for calls, texts and maps here?

    I am traveling to the United States to Australia next spring. I'll be able to use my iPhone AT & T 6 + for calls, texts and maps here?

    Yes, but it will be expensive as you will be traveling. Contact ATT to see what offers they offer when traveling.

  • Yoga 10 (b8000) OTA update fail (default tone for calls)

    Hello

    My tablet of Yoga is updated to 4.4.2.

    Today I opened the settings to see if there is some updating to do, and under the first line of the menu it is this frase (translation Italian fom):

    system update

    set the default ringtone for calls

    If I tap on that voice, said the next screen:

    unknown error. Server might not be available

    could you help me?

    What is the type of default ringtone for calls?

    Solved by myself: it was enough to enable developer mode

  • How to solve error C2198 'NIRT_GetValueByDataType': too few arguments for call

    Hello

    I get the error message following several times during the compilation of the mdl:

    ...
    # NEITHER VeriStand 2010f1 change bleed_real_time_iron_bird_nolinks_data.c file
    .....

    bleed_real_time_iron_bird_nolinks.c (16858): error C2039: 'Integrator_CSTATE_ma': is not a member of 'ContinuousStates_bleed_real_time_iron_bird_nolinks '.
    c:\workdir\models\bleed_revd\bleed_real_time_iron_bird_nolinks_niveristand_rtw\bleed_real_time_iron_bird_nolinks.h(1277): see declaration of 'ContinuousStates_bleed_real_time_iron_bird_nolinks '.
    bleed_real_time_iron_bird_nolinks.c (16858): error C2198: 'NIRT_GetValueByDataType': too few arguments for call

    How can I fix them?

    See you soon,.

    Hello

    The problem disappears when we disabled the option block: "treat as atomic unit.

    An important note: this problem does not occur when you use the other tlc than NI Veristand.

    See you soon

  • How to choose a SIM for calls out?

    Hello, I hace of choice for all calls, wich sim I want to use, I would like to know how could choice a SIM for calls, could someone help me? Thank you

    As far as I know, this is not possible. Unless disable you a SIM card and let the other treatments. But if you turn it off you will not be able to receive calls on this subject.

  • Prefetch is just a feature for Windows programs, or work for 3rd party too?

    My understanding of Prefetch is that it monitors the use of programs and try to anticipate when they could be used and so loaded them in memory, ready to go.

    It is just a feature for Windows programs, or work for 3rd party too?

    For example, I use OpenOffice and the first time I open it, it takes several seconds to open. If I close and open the program via a session then always opens almost instantly (about two or three seconds) so it must be in RAM somewhere. Yet every day the initial aperture is slow.

    Is - not what Prefetch is supposed to address?

    Hi Mooly,

    You can read the following article and check:

    What is the prefetch folder?

    If you are concerned about the start time, you can consult the following link:

    Optimize Windows Vista for better performance

    Hope this information is useful.

  • BlackBerry smartphones cannot put ringtone for calls from a contact

    Hello

    I'm BB deprived and update android to 6.0.1.

    I can set the ringtone for calls from a contact form but does not work.

    Please help me what should I do?

    BR

    Hi @rmoldershaw & @farhood

    This is a known issue that is fixed AAF518

    38259 'set ringtone' and 'All calls to your voicemail' settings restore default settings after the upda...

    Thank you!

  • Windows 7 Enterprise N - cannot install the Media feature for 64 - bit Pack

    I tried to install the package of multimedia features for Windows 7 N, but it keeps saying that it is not applicable to your computer.  Why?  I search high and low and cannot find an answer.  I tried to download windows media player, but I can't find a version for Windows 7.  More something what I don't have IIS 7.0.  Whatever it may be.

    Can anyone provide steps to help me install the 7 business N Windows Media feature pack?  Service Pack 1 is already installed and updates are all up to date.

    Download x 86 Edition-> Windows6. 1 - KB968211 - x 86 - RefreshPkg.msu
    Download x 64 Edition-> Windows6. 1 - KB968211 - x 64 - RefreshPkg.msu

    Make sure you try to download and install the version appropriate for your operating system.

Maybe you are looking for