PythonQt
Public Member Functions | List of all members
PythonQtSignalReceiver Class Reference

receives all signals for one QObject More...

#include <PythonQtSignalReceiver.h>

Inheritance diagram for PythonQtSignalReceiver:
PythonQtSignalReceiverBase

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)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ PythonQtSignalReceiver()

PythonQtSignalReceiver::PythonQtSignalReceiver ( QObject *  obj)

◆ ~PythonQtSignalReceiver()

PythonQtSignalReceiver::~PythonQtSignalReceiver ( )
override

Member Function Documentation

◆ addSignalHandler()

bool PythonQtSignalReceiver::addSignalHandler ( const char *  signal,
PyObject callable 
)

add a signal handler

◆ qt_metacall()

int PythonQtSignalReceiver::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

◆ removeSignalHandler()

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)


The documentation for this class was generated from the following file: