Re: [PyQt] QMetaObject.newInstance does not work as expected

2011-12-04 Thread Phil Thompson
On Thu, 1 Dec 2011 17:43:03 +0100, Henning Schröder wrote: > 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. > T

[PyQt] QMetaObject.newInstance does not work as expected

2011-12-01 Thread Henning Schröder
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 c