PDA

View Full Version : qt plugin development question



trisbal
29th May 2010, 14:34
Hi everybody, mi question is very simple:

Imaging that I have a main project extensible by plugins and a secundary project that defines a plugin.

Can I from the plugin project instanciate and use a class defined in the main project?

I have read the "How to create a Qt plugin" and I have seen examples but they never use classes defined in the parent project.

Thanks for all and sorry, my English is not very well.

squidge
29th May 2010, 14:49
Sure, as long as you define a suitable interface that can cross a DLL boundary, such as http://chadaustin.me/cppinterface.html

trisbal
29th May 2010, 14:54
Ok, I will try it, thanks a lot!