[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyQt] How to use sipAPIDef::api_get_pyobject and
From:       Jack Cosgrove <jackcosgrove () gmail ! com>
Date:       2011-11-26 16:37:12
Message-ID: 1322325432.4540.6.camel () fanserver
[Download RAW message or body]

Hi,

I'm trying to connect a C++ signal to a Python slot. What is the best
way to do this?

My current approach is to use sipQtAPI::qt_connect, and to do this I
need to apparently convert the C++ object to a PyObject using SIP. I do
that using sipAPIDef::api_get_pyobject. However whenever I call this
method using the appropriate sipType I get a segmentation fault.

I have included a small qmake project that replicates this behavior.
Could someone look it over and offer advice on what I am doing wrong?

["PythonInteropDemo.tar.gz" (application/x-compressed-tar)]

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic