PySide::Property Namespace

namespace PySide::Property

Namespace for type @Property. More...

Header: #include <pysideproperty.h>

Functions

PyObject *create(const char *typeName, PyObject *getter, PyObject *setter, PyObject *notifySignature, PySidePropertyBase *data = nullptr)
PyObject *create(const char *typeName, PyObject *getter, PyObject *setter = nullptr, const char *notifySignature = nullptr, PySidePropertyBase *data = nullptr)
const char *getNotifyName(PySideProperty *self)
PySideProperty *getObject(PyObject *source, PyObject *name)
const char *getTypeName(const PySide::Property::PySideProperty *self)
PyObject *getTypeObject(const PySide::Property::PySideProperty *self)
PyObject *getValue(PySideProperty *self, PyObject *source)
void init(PyObject *module)
int reset(PySide::Property::PySideProperty *self, PyObject *source)
int setValue(PySideProperty *self, PyObject *source, PyObject *value)

Detailed Description

Function Documentation

PyObject *Property::create(const char *typeName, PyObject *getter, PyObject *setter, PyObject *notifySignature, PySidePropertyBase *data = nullptr)

Creates a property from the type name typeName, the getter, the setter and the notification signature notifySignature, optionally passing the private data data.

PyObject *Property::create(const char *typeName, PyObject *getter, PyObject *setter = nullptr, const char *notifySignature = nullptr, PySidePropertyBase *data = nullptr)

Creates a property from the type name typeName, the getter, the optional setter and the notification signature notifySignature, optionally passing the private data data.

This is an overloaded function.

const char *Property::getNotifyName(PySideProperty *self)

Returns the notify signal name used by the property self.

PySideProperty *Property::getObject(PyObject *source, PyObject *name)

Searches the QObject source for the property named name. Returns a new reference to the property object.

PyObject *Property::getValue(PySideProperty *self, PyObject *source)

Calls the getter function of the property self on the QObject source. This function does not check the property object type. Returns the result of the getter function or nullptr on failure.

int Property::setValue(PySideProperty *self, PyObject *source, PyObject *value)

Calls the setter function of the property self on the QObject source passing value as argument. This function does not check the property object type. Returns 0 on success or -1 on failure.