PDA

View Full Version : loading two different versions of qt at runtime?



roybj
11th May 2010, 14:47
hi, i have a exe project that is built against qt 4.5.
as it turns out it needs to use another dll which is quilt with qt 3.3.8.
assuming the dll cannot be upgraded, is it possible/safe to load both versions of qt at runtime?

thanks!

wysota
11th May 2010, 15:17
No, it's not safe to do that. You can however recompile Qt4 with a special switch that will place all its classes inside a namespace, then you can rewrite the Qt4-based part of the program to use that namespace and then you'll be able to safely link the application. Of course if both Qt subsystems use event loops, it's likely they will interfere with each other.