Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Does Meego Nokia N950 Does not support cpp QML binding
Forum Updated to NodeBB v4.3 + New Features

Does Meego Nokia N950 Does not support cpp QML binding

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 1.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rashid.inayat
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved