I want write a dll that uses Qt for its UI.
The 1st requirement is that this dll may be used from any application (ie, a the host may be a Qt, MFC, Win32, Cocoa, whatever-on-whatever platform application).
The 2nd requirement is that the UI displayed by the dll must run in parallel to the main hosts interface (ie, the dll interface is not "modal" to the main application, and thus it does not block the host application interface itself from running).
The 3rd requirement is that the dll is statically linked to the Qt libraries.
Using Qt, my understanding is that you need a QApplication object, and that object should call exec() from the "main thread" which would, in this scenario, exist only in the host application.
Calling exec would also block the caller - in a standalone application this is fine as it normally called from main() etc. In a dll, this would block the host applications calling thread.
How does one accomplish this? I have seen similar posts on these forums, but they have never addressed this particular scenario.
I have achieved these requirements in the past (points 2 and 3 at least) using MFC under Windows, but that is obviously not cross platform!
Can anyone help me out with a solution please?
Simon.
Bookmarks