Unsolved QML Plugin methods into C++ code
-
Hi everyone!
I have a project which uses QML plugin. This plugin has a C++ methods which I want use in my backend logic in C++. How I can call C++ methods from QML plugin in C++ code without QML? Is it possible?
I need this for convert Objective-C NSDictionary type to QVariantMap. My plugin has this methods and I want to use it. I don't want copy part of code to another project.
Also I have another question: Is it possible to send Objective-C object to QML? I can't find any way for this.
-
@shav
you need to load the plugin yourself, using QLibrary and resolve the methods you want to use.
If the plugin is already loaded it wont get loaded a second time.