PyQt and Pivy

Chump Wad chumpwad at chump.wad
Sat Oct 16 15:41:53 CEST 2004

I will now die.  I am too ignorant to make it work. segfaults for me.

It is almost there, but it is not there.  SoQt.init returns a string,
which I can't use as the parent widget of my PyQt derived class. and mainLoop need a string as a parameter, so my PyQt derived
class can't go there.

I humbly beg of your help.

I don't understand the following; I would love a non-portable linkage to
libsip if it would get me the Qt widget set:

   * In case anybody wonders! yes, i know that one can achieve all of
   * in a very simple and elegant fashion by just using the sip library,

   * like e.g. adding the following instead of the structure
   * and our stunt:
   * #define ANY_TEMP ANY
   * #undef ANY
   * #include <sip.h>
   * #undef ANY
   * #define ANY ANY_TEMP
   *   extern PyObject *sipClass_QEvent;
   *   qev = sipNewCppToSelfSubClass(event, sipClass_QEvent, SIP_SIMPLE
   * this works perfectly and is such a lovely solution that i really
   * to keep it. BUT libsip gets installed into the python site-packages

   * directory and not only would we need to link against libsip but
   * against the libqtcmodule for the sipClass_Qevent object. this
   * adds new library dependencies, which i simply don't want to cope
   * and makes the platform independent goal harder to achieve.

I should say that the rest of it works GREAT!  This is a monumental
work.  It is so solid and functional and beautiful.

I thank you very much for this wonderful thing, which someone should
have done long ago, but only you actually accomplished.

More information about the Python-list mailing list