PDA

View Full Version : Running PyQt3 within a Qt4 app



jgver
7th August 2008, 16:54
Does anyone know if it is possible to run a PyQt3 script within a Qt4 application? Whenever I try this, the main (Qt4) application crashes, with the call stack showing QString::startsWith as the last function to execute.

I've tried stripping the PyQt3 script down to nothing, and it appears that just having "import qt" in the script causes the crash.

I am able to run PyQt4 scripts just fine; it's just PyQt3 scripts that won't run.

I'm wondering if maybe I need to simply recompile PyQt3, or Qt3 itself, with particular compiler options, or whether this just isn't possible.

If anyone has any experience with this, I'd love to hear about it.

I'm running in a Linux environment, under CentOS 5.2.

Thanks!
Jeff