March 16, 2012

Harry443 Harry443
Lab Rat
24 posts

C++ QML mapping through signals and slots

 

Hello,
My application needs some signals from C++ to call slots in QML
the slots will be in many QML pages…..how can we call slots in many QML files form C++?
If it is of one qml page,,,,can we use QDeclarativeView?
Can someone help me in calling SLOTS in many QML pages through C++ signals?

Thanks in advance:)

1 reply

March 16, 2012

mlong mlong
Mad Scientist
1517 posts

See the second example here. [doc.trolltech.com] I think it’s doing what you want. You’ll most likely want to explore the Connections [qt-project.org] element.

 Signature 

Senior Software Engineer
AccuWeather Enterprise Solutions
/* My views and opinions do not necessarily reflect those of my employer.  Void where prohibited. */

 
  ‹‹ Problem with deployment on Win CE      printing contents of entire QGraphicscene ››

You must log in to post a reply. Not a member yet? Register here!