PythonQt
Public Slots | List of all members
PythonQtStdDecorators Class Reference

#include <PythonQtStdDecorators.h>

Inheritance diagram for PythonQtStdDecorators:

Public Slots

bool connect (QObject *sender, const QByteArray &signal, PyObject *callable)
 
bool connect (QObject *sender, const QByteArray &signal, QObject *receiver, const QByteArray &slot, Qt::ConnectionType type=Qt::AutoConnection)
 
bool connect (QObject *receiver, QObject *sender, const QByteArray &signal, const QByteArray &slot, Qt::ConnectionType type=Qt::AutoConnection)
 
bool static_QObject_connect (QObject *sender, const QByteArray &signal, PyObject *callable)
 
bool static_QObject_connect (QObject *sender, const QByteArray &signal, QObject *receiver, const QByteArray &slot, Qt::ConnectionType type=Qt::AutoConnection)
 
bool disconnect (QObject *sender, const QByteArray &signal, PyObject *callable=nullptr)
 
bool disconnect (QObject *sender, const QByteArray &signal, QObject *receiver, const QByteArray &slot)
 
bool static_QObject_disconnect (QObject *sender, const QByteArray &signal, PyObject *callable=nullptr)
 
bool static_QObject_disconnect (QObject *sender, const QByteArray &signal, QObject *receiver, const QByteArray &slot)
 
const QMetaObjectmetaObject (QObject *obj)
 
QObject * parent (QObject *o)
 
void setParent (QObject *o, PythonQtNewOwnerOfThis< QObject * > parent)
 
const QObjectListchildren (QObject *o)
 
QObject * findChild (QObject *parent, PyObject *type, const QString &name=QString())
 
QList< QObject * > findChildren (QObject *parent, PyObject *type, const QString &name=QString())
 
QList< QObject * > findChildren (QObject *parent, PyObject *type, const QRegularExpression &regExp)
 
bool setProperty (QObject *o, const char *name, const QVariant &value)
 
QVariant property (QObject *o, const char *name)
 
double static_Qt_qAbs (double a)
 
double static_Qt_qBound (double a, double b, double c)
 
void static_Qt_qDebug (const QByteArray &msg)
 
void static_Qt_qWarning (const QByteArray &msg)
 
void static_Qt_qCritical (const QByteArray &msg)
 
void static_Qt_qFatal (const QByteArray &msg)
 
bool static_Qt_qFuzzyCompare (double a, double b)
 
double static_Qt_qMax (double a, double b)
 
double static_Qt_qMin (double a, double b)
 
int static_Qt_qRound (double a)
 
qint64 static_Qt_qRound64 (double a)
 
const charstatic_Qt_qVersion ()
 
int static_Qt_qrand ()
 
void static_Qt_qsrand (uint a)
 
QString tr (QObject *obj, const QString &text, const QString &ambig=QString(), int n=-1)
 
QString static_Qt_SIGNAL (const QString &s)
 
QString static_Qt_SLOT (const QString &s)
 
void static_QTimer_singleShot (int msec, PyObject *callable)
 

Detailed Description

Definition at line 65 of file PythonQtStdDecorators.h.

Member Function Documentation

◆ children

const QObjectList * PythonQtStdDecorators::children ( QObject *  o)
slot

◆ connect [1/3]

bool PythonQtStdDecorators::connect ( QObject *  receiver,
QObject *  sender,
const QByteArray signal,
const QByteArray slot,
Qt::ConnectionType  type = Qt::AutoConnection 
)
inlineslot

Definition at line 72 of file PythonQtStdDecorators.h.

72{ return connect(sender, signal, receiver, slot, type); }
PyObject * PythonQtConvertPairToPython(const void *inPair, int metaTypeId)
bool connect(QObject *sender, const QByteArray &signal, PyObject *callable)

References connect(), and PythonQtConvertPairToPython().

Referenced by connect().

◆ connect [2/3]

bool PythonQtStdDecorators::connect ( QObject *  sender,
const QByteArray signal,
PyObject callable 
)
slot

◆ connect [3/3]

bool PythonQtStdDecorators::connect ( QObject *  sender,
const QByteArray signal,
QObject *  receiver,
const QByteArray slot,
Qt::ConnectionType  type = Qt::AutoConnection 
)
slot

◆ disconnect [1/2]

bool PythonQtStdDecorators::disconnect ( QObject *  sender,
const QByteArray signal,
PyObject callable = nullptr 
)
slot

◆ disconnect [2/2]

bool PythonQtStdDecorators::disconnect ( QObject *  sender,
const QByteArray signal,
QObject *  receiver,
const QByteArray slot 
)
slot

◆ findChild

QObject * PythonQtStdDecorators::findChild ( QObject *  parent,
PyObject type,
const QString name = QString() 
)
slot

◆ findChildren [1/2]

QList< QObject * > PythonQtStdDecorators::findChildren ( QObject *  parent,
PyObject type,
const QRegularExpression regExp 
)
slot

◆ findChildren [2/2]

QList< QObject * > PythonQtStdDecorators::findChildren ( QObject *  parent,
PyObject type,
const QString name = QString() 
)
slot

◆ metaObject

const QMetaObject * PythonQtStdDecorators::metaObject ( QObject *  obj)
slot

◆ parent

QObject * PythonQtStdDecorators::parent ( QObject *  o)
slot

◆ property

QVariant PythonQtStdDecorators::property ( QObject *  o,
const char name 
)
slot

◆ setParent

void PythonQtStdDecorators::setParent ( QObject *  o,
PythonQtNewOwnerOfThis< QObject * >  parent 
)
slot

◆ setProperty

bool PythonQtStdDecorators::setProperty ( QObject *  o,
const char name,
const QVariant value 
)
slot

◆ static_QObject_connect [1/2]

bool PythonQtStdDecorators::static_QObject_connect ( QObject *  sender,
const QByteArray signal,
PyObject callable 
)
inlineslot

Definition at line 73 of file PythonQtStdDecorators.h.

73{ return connect(sender, signal, callable); }

References PythonQtConvertPairToPython().

◆ static_QObject_connect [2/2]

bool PythonQtStdDecorators::static_QObject_connect ( QObject *  sender,
const QByteArray signal,
QObject *  receiver,
const QByteArray slot,
Qt::ConnectionType  type = Qt::AutoConnection 
)
inlineslot

Definition at line 74 of file PythonQtStdDecorators.h.

74{ return connect(sender, signal, receiver, slot, type); }

References PythonQtConvertPairToPython().

◆ static_QObject_disconnect [1/2]

bool PythonQtStdDecorators::static_QObject_disconnect ( QObject *  sender,
const QByteArray signal,
PyObject callable = nullptr 
)
inlineslot

Definition at line 77 of file PythonQtStdDecorators.h.

77{ return disconnect(sender, signal, callable); }
bool disconnect(QObject *sender, const QByteArray &signal, PyObject *callable=nullptr)

References PythonQtConvertPairToPython().

◆ static_QObject_disconnect [2/2]

bool PythonQtStdDecorators::static_QObject_disconnect ( QObject *  sender,
const QByteArray signal,
QObject *  receiver,
const QByteArray slot 
)
inlineslot

Definition at line 78 of file PythonQtStdDecorators.h.

78{ return disconnect(sender, signal, receiver, slot); }

References PythonQtConvertPairToPython().

◆ static_Qt_qAbs

double PythonQtStdDecorators::static_Qt_qAbs ( double  a)
inlineslot

Definition at line 93 of file PythonQtStdDecorators.h.

93{ return qAbs(a); }

References PythonQtConvertPairToPython().

◆ static_Qt_qBound

double PythonQtStdDecorators::static_Qt_qBound ( double  a,
double  b,
double  c 
)
inlineslot

Definition at line 94 of file PythonQtStdDecorators.h.

94{ return qBound(a,b,c); }

References PythonQtConvertPairToPython().

◆ static_Qt_qCritical

void PythonQtStdDecorators::static_Qt_qCritical ( const QByteArray msg)
inlineslot

Definition at line 99 of file PythonQtStdDecorators.h.

99{ qCritical("%s", msg.constData()); }

References PythonQtConvertPairToPython().

◆ static_Qt_qDebug

void PythonQtStdDecorators::static_Qt_qDebug ( const QByteArray msg)
inlineslot

Definition at line 95 of file PythonQtStdDecorators.h.

95{ qDebug("%s", msg.constData()); }

References PythonQtConvertPairToPython().

◆ static_Qt_qFatal

void PythonQtStdDecorators::static_Qt_qFatal ( const QByteArray msg)
inlineslot

Definition at line 101 of file PythonQtStdDecorators.h.

101{ qFatal("%s", msg.constData()); }

References PythonQtConvertPairToPython().

◆ static_Qt_qFuzzyCompare

bool PythonQtStdDecorators::static_Qt_qFuzzyCompare ( double  a,
double  b 
)
inlineslot

Definition at line 103 of file PythonQtStdDecorators.h.

103{ return qFuzzyCompare(a, b); }

References PythonQtConvertPairToPython().

◆ static_Qt_qMax

double PythonQtStdDecorators::static_Qt_qMax ( double  a,
double  b 
)
inlineslot

Definition at line 104 of file PythonQtStdDecorators.h.

104{ return qMax(a, b); }

References PythonQtConvertPairToPython().

◆ static_Qt_qMin

double PythonQtStdDecorators::static_Qt_qMin ( double  a,
double  b 
)
inlineslot

Definition at line 105 of file PythonQtStdDecorators.h.

105{ return qMin(a, b); }

References PythonQtConvertPairToPython().

◆ static_Qt_qrand

int PythonQtStdDecorators::static_Qt_qrand ( )
inlineslot

Definition at line 110 of file PythonQtStdDecorators.h.

111 {
112#if QT_VERSION < 0x060000
113 return qrand();
114#else
115 return QRandomGenerator::global()->generate();
116#endif
117 }

References PythonQtConvertPairToPython().

◆ static_Qt_qRound

int PythonQtStdDecorators::static_Qt_qRound ( double  a)
inlineslot

Definition at line 106 of file PythonQtStdDecorators.h.

106{ return qRound(a); }

References PythonQtConvertPairToPython().

◆ static_Qt_qRound64

qint64 PythonQtStdDecorators::static_Qt_qRound64 ( double  a)
inlineslot

Definition at line 107 of file PythonQtStdDecorators.h.

107{ return qRound64(a); }

References PythonQtConvertPairToPython().

◆ static_Qt_qsrand

void PythonQtStdDecorators::static_Qt_qsrand ( uint  a)
inlineslot

Definition at line 119 of file PythonQtStdDecorators.h.

120 {
121#if QT_VERSION < 0x060000
122 qsrand(a);
123#else
124 QRandomGenerator::global()->seed(a);
125#endif
126 }

References PythonQtConvertPairToPython().

◆ static_Qt_qVersion

const char * PythonQtStdDecorators::static_Qt_qVersion ( )
inlineslot

Definition at line 108 of file PythonQtStdDecorators.h.

108{ return qVersion(); }

References PythonQtConvertPairToPython().

◆ static_Qt_qWarning

void PythonQtStdDecorators::static_Qt_qWarning ( const QByteArray msg)
inlineslot

Definition at line 97 of file PythonQtStdDecorators.h.

97{ qWarning("%s", msg.constData()); }

References PythonQtConvertPairToPython().

◆ static_Qt_SIGNAL

QString PythonQtStdDecorators::static_Qt_SIGNAL ( const QString s)
inlineslot

Definition at line 130 of file PythonQtStdDecorators.h.

130{ return QString("2") + s; }

References PythonQtConvertPairToPython().

◆ static_Qt_SLOT

QString PythonQtStdDecorators::static_Qt_SLOT ( const QString s)
inlineslot

Definition at line 131 of file PythonQtStdDecorators.h.

131{ return QString("1") + s; }

References PythonQtConvertPairToPython().

◆ static_QTimer_singleShot

void PythonQtStdDecorators::static_QTimer_singleShot ( int  msec,
PyObject callable 
)
slot

◆ tr

QString PythonQtStdDecorators::tr ( QObject *  obj,
const QString text,
const QString ambig = QString(),
int  n = -1 
)
slot

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