[PyKDE] Run-time error (Must construct a QApplication before a QPaintdevice)

Eron Lloyd eronlloyd at gmail.com
Thu Apr 20 21:46:38 BST 2006


Sounds like some of the programs aren't properly initializing a
QApplication in the main loop before calling widgets. I don't remember
if PyQt3 acted like this, but it most likely is the culprit.

Eron

On 4/20/06, Adam Tenderholt <atenderholt at gmail.com> wrote:
> I've built PyQt-mac-3.16 against sip-4.4.1 and QtMac-gpl-3.3.6 (static,
> multithreaded) on Mac OS X (Intel, 10.4.6) using the built-in python (v.
> 2.3.5). Some of the examples3 programs run, but there are a few (e.g.
> tablestatistics.py , bigtable.py, smalltable.py, etc.) that give the error
> "QPaintDevice: Must construct a QApplication before a QPaintDevice". I also
> see this message when I install PyQwt and run some of its example programs.
>
> I've tried compiling a non multi-threaded Qt as well, but it still didn't
> work. Any suggestions?
>
> Thanks,
>
> Adam
>
>
> _______________________________________________
> PyKDE mailing list    PyKDE at mats.imk.fraunhofer.de
> http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
>
>
>




More information about the PyQt mailing list