PDA

View Full Version : create a plugins



goli
26th June 2011, 13:48
i create 2 projects. in the first project i create few objects(declerativeItems) and used the qmlRegisterType to create the connection to qml.
now i would like to use this objects in the second project, without to include the files in the pro file…..
how can i do that correctly?
i tried to use the CONFIG += … but this does not work.

high_flyer
27th June 2011, 14:16
Read about creating libs.

goli
27th June 2011, 16:12
i create a class inherit from QDeclarativeExtensionPlugin in the plugin project
and create a dll for the plugin.
now i want to use this from the second project...
so in the qmlrir file of theis project i write:

plugin mypluginname full/path/to/the/dll/file
but i got an error :
module "mypluginname" is not installed