Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6955485
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:44:32+00:00 2026-05-27T14:44:32+00:00

I want to communicate between C++ and QML on Meego. It happens using C++

  • 0

I want to communicate between C++ and QML on Meego. It happens using C++ QML binding as described in this link.

When I run an app on the Symbian platform it works, and data from C++ is available to manipulate in some QML file.

But on Meego it always says myItem.qml file not found.

See the following code snippet:

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 QML C++ binding?

I also tried to give the exact path of the 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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T14:44:33+00:00Added an answer on May 27, 2026 at 2:44 pm

    Yes, but your problem isn’t related to C++ and QML bindings. Your application (specifically the view) can’t find the .qml file to load.

    By default, I think on meego the default path to look in is ../qml. So by default you should be packaging into /opt/YOURNAME with the binary in /opt/YOURNAME/bin and the qml files in /opt/YOURNAME/qml.

    However, you can also put the qml files into a resource and use the :/ paths to access a resource instead.

    IE, in your resource file:

    <RCC>
        <qresource prefix="/">
            <file>qml/foo.qml</file>
        </qresource>
    </RCC>
    

    And in C++:

    viewer.setSource(QUrl("qrc:/qml/foo.qml"));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using JSON to communicate between my rails app and iOS via RestKit (Thanks
I want two separate programs written in Pascal communicate between themselves using additional text
I want to communicate between two or more dialog windows,when i say communicate It
I want to use netlink to communicate between an application and kernel space. My
I am creating server-client application for iPhone. I want to communicate between two application
How can I communicate between two PC's via USB? I want a program to
I'm currently looking into using WCF to communicate between a server and a program
I'm using .NET remoting to communicate between a web site and a Windows service.
Recently I had a problem using (pipe |-) when I wanted to communicate between
I am using Apache Thrift to communicate between a Java program and a PHP

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.