Maybe its a very dumb question but I hope you can give me some answers.
I have a commercial application which uses Qt3 for its GUI and an embedded Python interpreter (command line) for scripting. I want to write a custom plugin for this application which uses Qt4. The plugin is mainly a subclassed QMainWindow-class that is linked into a dll (so I am on Windows) together with a boost python wrapper. The python wrapper should be the interface between my plugin and my commercial application.
So my question: is this possible?? So is running Qt3 code independent from running Qt4 code in the same application.
First experiments resulted in application shutdown, I will try to investigate this further...
Thank you!
Edit: My application crashed because I didn´t created a QT4 qapplication instance. So when I create the instance everything works well without the additional Qt namespace (which is suggested in the answers, so no need to recompile)! ;)
See this thread on a Trolltech forum. (Well actually that's about Qt3 plugins in a Qt4 app but I suspect the answer is much the same).
Update: link now a dud, but the wayback machine has it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With