Functions specifically for signals/slots

Table of Contents
sipEmitSignal — Emit a Python or Qt signal
sipConvertRx — Convert a Python receiver to a Qt receiver
sipConnectRx — Connect a Qt or a Python signal
sipGetRx — Convert a valid Python signal or slot to an existing proxy Qt slot
sipDisconnectRx — Disconnect a Qt or Python signal from a Python slot

These functions are specific for the Qt support. They are in the separate files sipqt.h and qtlib.cpp.


sipEmitSignal

Name

sipEmitSignal -- Emit a Python or Qt signal

Synopsis

int sipEmitSignal(sipThisType * w, char * sig, PyObject * sigargs);

Description

Return Value

Return 0 if the signal was emitted or <0 if there was an error.

w

sig

sigargs


sipConvertRx

Name

sipConvertRx -- Convert a Python receiver to a Qt receiver

Synopsis

QObject * sipConvertRx(sipProxy *(*)() proxyfunc, sipThisType * txThis, char * sigargs, PyObject * rxobj, char * slot, char ** memberp, int * iserr);

Description

Convert a Python receiver (either a Python signal or slot or a Qt signal or slot) to a Qt receiver. It is only ever called when the signal is a Qt signal.

Return Value

Return NULL is there was an error.

proxyfunc

txThis

sigargs

rxobj<

slot

memberp

iserr

Set *iserr to TRUE if there was an error.

sipConnectRx

Name

sipConnectRx -- Connect a Qt or a Python signal

Synopsis

PyObject * sipConnectRx(PyObject * txobj, char * sig, PyObject * rxobj, char * slot);

Description

Connect a Qt signal or a Python signal to a Qt slot, a Qt signal, a Python slot or a Python signal. This is all possible combinations.

Return Value

Py_True or Py_False or NULL, if there was an error.

txobj

sig

rxobj

slot


sipGetRx

Name

sipGetRx -- Convert a valid Python signal or slot to an existing proxy Qt slot

Synopsis

QObject * sipGetRx(sipThisType * txThis, char * sigargs,, PyObject * rxobj, char * slot, char ** memberp, int * iserr);

Description

Return Value

NULL if there was an error.

txThis

sigargs

rxobj

slot

memberp

iserr


sipDisconnectRx

Name

sipDisconnectRx -- Disconnect a Qt or Python signal from a Python slot

Synopsis

PyObject * sipDisconnectRx(PyObject * txobj, char * sig, PyObject * rxobj, char * slot);

Description

Return Value

txobj

sig

rxobj

slot