Does Meego Nokia N950 Does not support cpp QML binding



  • Hi,

    I want to communicate between cpp and qml on meego, it happens using cpp qml binding as described in this "link":http://doc.qt.nokia.com/4.7-snapshot/qtbinding.html.
    When I run app on Symbian plateform it works and data from cpp is available to manipulate in some qml file.
    But on meego it always say myItem.qml file not found.
    please visit following code snipped
    @int main(int argc, char *argv[]) {
    QApplication app(argc, argv);

     QDeclarativeView view;
     MyClass myClass;
     view.rootContext()->setContextProperty("myObject", &myClass);
    
     view.setSource(QUrl::fromLocalFile("MyItem.qml"));
     view.show();
    
     return app.exec();
    

    }@
    Does Meego does not support qmll cpp binding?

    I also tried to give exact path of qml file but never found that file, even myItem is in project structure.

    Is there some thing associated with path settings in .pro file etc

    Please help on this as I am stuck here with this and cannot move forward in my app using Qt Quick.

    Thank You



  • Being able to communicate between C++ and QML is core of QML, so it is obviously supported on all platforms QML runs on. The problem you have is not in the commuciation between QML and C++, it seems to be in the paths searched for your QML.

    I would recommend you put your .qml files in a Qt Resource and just compile them into your application itself.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.