Home > Back-end >  How the QML instances of registered mark point at different instances of the c + +
How the QML instances of registered mark point at different instances of the c + +

Time:05-13


The class Cust {};

Cust * c1=new Cust ();
Cust * c2=new Cust ();
Cust * c3=new Cust ();

Engine. RootContext () - & gt; SetContextProperty (" cust ", c1);

So I'm in a Cust. QML how Cust switch to point to c2, c3?

CodePudding user response:

I hope it can help you, looking forward to adopt: https://blog.csdn.net/it_xiangqiang/category_10794527.html

CodePudding user response:

QT there, QML and c + + call interface class, hope to adopt, can focus on direct messages I don't understand,
  • Related