tags:

views:

24

answers:

1

I have a QT GUI application loading a non GUI QT dll. I need to be able to access the QApplication object inside the DLL. How can i do this? I tried QCoreApplication::instance(), but this returns null. Without having the object from the main GUI, i am not able to process events in the DLL. Any help?

+1  A: 

Ok. After some reading, i got it figured out. In the DLL that is getting loaded, if i do QCoreApplication::instance(), i am able to get the instance of the parent process and then i am able to do what i want inside the dll. Always something to learn everyday.

karthik