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.htmlCodePudding user response:
QT there, QML and c + + call interface class, hope to adopt, can focus on direct messages I don't understand,