PythonQt
|
receives all signals for one QObject More...
#include <PythonQtSignalReceiver.h>
Public Member Functions | |
PythonQtSignalReceiver (QObject *obj) | |
~PythonQtSignalReceiver () override | |
bool | addSignalHandler (const char *signal, PyObject *callable) |
add a signal handler More... | |
bool | removeSignalHandler (const char *signal, PyObject *callable=nullptr) |
remove a signal handler for given callable (or all callables on that signal if callable is NULL) More... | |
int | qt_metacall (QMetaObject::Call c, int id, void **arguments) override |
we implement this method to simulate a number of slots that match the ids in _targets More... | |
Public Member Functions inherited from PythonQtSignalReceiverBase | |
PythonQtSignalReceiverBase (QObject *obj) | |
receives all signals for one QObject
we derive from our base but do not declare the QObject macro because we want to reimplement qt_metacall only.
Definition at line 112 of file PythonQtSignalReceiver.h.
PythonQtSignalReceiver::PythonQtSignalReceiver | ( | QObject * | obj | ) |
|
override |
bool PythonQtSignalReceiver::addSignalHandler | ( | const char * | signal, |
PyObject * | callable | ||
) |
add a signal handler
|
override |
we implement this method to simulate a number of slots that match the ids in _targets
bool PythonQtSignalReceiver::removeSignalHandler | ( | const char * | signal, |
PyObject * | callable = nullptr |
||
) |
remove a signal handler for given callable (or all callables on that signal if callable is NULL)