[Solved]Create a plugin from code that also uses QML.
-
wrote on 19 Feb 2015, 14:08 last edited by
Hi everyone,
I have some code that also relies a few qml objects that I load into my other c++ classes. I want to create a plugin from this code, something I have done in the past, but this time I am not sure how (or even if possible) to deal with the qml files that my code needs.
What will happen to them, do I have to include them somewhere?
The reason I am asking is because I did try to create my plugin as a test. I was expecting to see a qml button show up, instead all I got was a white background.
-
wrote on 22 Feb 2015, 19:23 last edited by
Hi,
How are you referencing your QML items in your C++ code? Is it a pure C++ plugin or a QtQuickItem plugin? In general you can add the QML files to a resource file with a matching qmldir file to get them registered correctly when loading up your plugin.
Cheers,
Alex from V-Play -
wrote on 23 Feb 2015, 07:44 last edited by
Indeed, it was only recently that I learned you are able to do that.
Thanks for your help.
1/3