Interface using QML implementation, business logic part using c + +; Now both interaction problems: interface parameters how to synchronize and c + +? For example: resolution: c + + the parameter values can be obtained as follows: 1920 * 1080 1024 * 768 shown on the interface of a resolution of 1024 * 7681. The user to change the resolution of 1920 * 1080; So how to notice the parameter c + +? 2. C + + the parameter was changed to 1920 * 1080; Then how do you update interface? Similar to resolution, number of parameters in larger projects, how to reasonable and convenient management of this kind of data?
CodePudding user response:
Didn't understand that, after the QML using layout, have a resolution of the problem?
CodePudding user response:
Resolution is just one example, I may also be shown on the interface of the local IP and local port number...
CodePudding user response:
This should be a c + + QML interaction of category, if you carefully look at will understand,
CodePudding user response:
Qt and QML is for signal transmission, when c + + have the resolution changes, the original poster to define a signal that is sent, listening in QML, with respect to OK, but seems that you interact if registered instance to QML, registered and used, the original poster can also give it a try, to register as an example, and then listening, can keep the c + + and QML interaction, no, the original poster can come and cut me!!!!!!!