|
PythonQt
|
connects a signal to a callable More...
#include <PythonQtSignalReceiver.h>
Public Member Functions | |
| PythonQtSignalReceiver (QObject *sender, int signalId, PyObject *callable) | |
| ~PythonQtSignalReceiver () override | |
| QObject * | sender () const |
| Returns the signal sender for which this receiver was created. | |
| int | signalId () const |
| Returns the signal ID for which this receiver was created. | |
| bool | isSameCallable (PyObject *callable) const |
| Check if this object targets the callable given as argument. | |
| void | markAsRemoved () |
| Mark this object as already removed from the global list of signal receivers. | |
| int | qt_metacall (QMetaObject::Call c, int id, void **arguments) override |
| We implement this method to either call the callable, or react to the fact that the sender was destroyed. | |
Public Member Functions inherited from PythonQtSignalReceiverBase | |
| PythonQtSignalReceiverBase ()=default | |
Static Public Member Functions | |
| static int | getSignalIndex (QObject *sender, const char *signal) |
| Get the index of a sender's signal. | |
connects a signal to a callable
we derive from our base but do not declare the QObject macro because we want to reimplement qt_metacall only.
Definition at line 99 of file PythonQtSignalReceiver.h.
| PythonQtSignalReceiver::PythonQtSignalReceiver | ( | QObject * | sender, |
| int | signalId, | ||
| PyObject * | callable | ||
| ) |
|
override |
Get the index of a sender's signal.
Check if this object targets the callable given as argument.
| void PythonQtSignalReceiver::markAsRemoved | ( | ) |
Mark this object as already removed from the global list of signal receivers.
We implement this method to either call the callable, or react to the fact that the sender was destroyed.
|
inline |
Returns the signal sender for which this receiver was created.
Definition at line 107 of file PythonQtSignalReceiver.h.
|
inline |
Returns the signal ID for which this receiver was created.
Definition at line 110 of file PythonQtSignalReceiver.h.