[PyQt] QMetaObject.newInstance does not work as expected

Henning Schröder henning.schroeder at gmail.com
Thu Dec 1 16:43:03 GMT 2011


Hello,
again I tried to seek to push the boundaries.This time I tried to load
a C++ widget inside a library into PyQt using ctypes (without extra
sip bindings).
I worked well :) but I cannot call a constructor with arguments.
The attached code reaches the except-block with PyQt 4.8.5
To test just call: qmake && make &&  python test.py

Regards
Henning
-------------- next part --------------
A non-text attachment was scrubbed...
Name: newinstance_problem.tgz
Type: application/x-gzip
Size: 862 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20111201/ca5f90f0/attachment.bin>


More information about the PyQt mailing list