I am having a little trouble with dll´s and items .
I had some custom items that worked fine.I had an abstract item that inherited QGraphicsItem , an item (it was a node in a diagram ,so I will cal it node) that inherited that abstract custom item ,a text item that was part of the abstract one and inherited QGraphicsTextItem (hopefully you understand this because I didnt explain it very well) and an arrow that inherited from QGraphicsItem.
My first attempt ,to make it simpler ,was to make a dll that just exported a function that returned a pointer to a node .In the dll ,of course ,there was more code ,but not exported .I could create it ,put it on a scene and view it with a view,call some functions to inicialice it....but the events were not delivered to them .The funny (and annoying) thing is that the other items that I ve created (except for the abstract one,of course) are getting the events just as usual .For example , the node had a filter event for his text item : the text item is getting events ,but they dont go through the filter .
I tried to also export the item clases I had created ,and link my aplication against the dll (with dynamic link ,because it doesnt run without the dll) :nothing changed .
The only difference between the clases that dont work and the ones that works (the only one I ve noticed)....well I dont know how to explain it (I m new to dll s) ,so ...lets see:
http://img228.imageshack.us/img228/2193/dllxc8.jpg
This is some kind of view of the dll on eclipse .For example ,the arrow class (in arrow.h and arrow.cpp) is working , but the nodofuente class (nodofuente.cpp ,the node) is not working .As you can see (well ,believe me because you dont see the whole dll) the dll doesnt "include" (or whatever) the .h file of the class that is not working .I dont know what this means or even if it means something at all and has something to do with my problem .
Any help will be really ,really,really apreciated .
Thanks in advance .
Bookmarks