PythonQt
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 QMetaObject * metaObject (QObject *obj)
QObject * parent (QObject *o)
void setParent (QObject *o, PythonQtNewOwnerOfThis< QObject * > parent)
const QObjectList * children (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 char * static_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 73 of file PythonQtStdDecorators.h.

75 {
76 return connect(sender, signal, receiver, slot, type);
77 }
bool connect(QObject *sender, const QByteArray &signal, PyObject *callable)

References 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

References parent().

Referenced by static_QTimer_singleShot().

◆ findChildren [1/2]

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

References parent().

◆ findChildren [2/2]

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

References parent().

Referenced by static_QTimer_singleShot().

◆ 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

References parent().

◆ 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 78 of file PythonQtStdDecorators.h.

79 {
80 return connect(sender, signal, callable);
81 }

References connect().

◆ 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 82 of file PythonQtStdDecorators.h.

84 {
85 return connect(sender, signal, receiver, slot, type);
86 }

References connect().

◆ static_QObject_disconnect [1/2]

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

Definition at line 89 of file PythonQtStdDecorators.h.

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

References disconnect().

◆ static_QObject_disconnect [2/2]

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

Definition at line 93 of file PythonQtStdDecorators.h.

94 {
95 return disconnect(sender, signal, receiver, slot);
96 }

References disconnect().

◆ static_Qt_qAbs

double PythonQtStdDecorators::static_Qt_qAbs ( double a)
inlineslot

Definition at line 111 of file PythonQtStdDecorators.h.

111{ return qAbs(a); }

◆ static_Qt_qBound

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

Definition at line 112 of file PythonQtStdDecorators.h.

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

◆ static_Qt_qCritical

void PythonQtStdDecorators::static_Qt_qCritical ( const QByteArray & msg)
inlineslot

Definition at line 117 of file PythonQtStdDecorators.h.

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

◆ static_Qt_qDebug

void PythonQtStdDecorators::static_Qt_qDebug ( const QByteArray & msg)
inlineslot

Definition at line 113 of file PythonQtStdDecorators.h.

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

◆ static_Qt_qFatal

void PythonQtStdDecorators::static_Qt_qFatal ( const QByteArray & msg)
inlineslot

Definition at line 119 of file PythonQtStdDecorators.h.

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

◆ static_Qt_qFuzzyCompare

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

Definition at line 121 of file PythonQtStdDecorators.h.

121{ return qFuzzyCompare(a, b); }

◆ static_Qt_qMax

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

Definition at line 122 of file PythonQtStdDecorators.h.

122{ return qMax(a, b); }

◆ static_Qt_qMin

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

Definition at line 123 of file PythonQtStdDecorators.h.

123{ return qMin(a, b); }

◆ static_Qt_qrand

int PythonQtStdDecorators::static_Qt_qrand ( )
inlineslot

Definition at line 128 of file PythonQtStdDecorators.h.

129 {
130#if (QT_VERSION < QT_VERSION_CHECK(5, 15, 0))
131 return qrand();
132#else
133 return QRandomGenerator::global()->generate();
134#endif
135 }

◆ static_Qt_qRound

int PythonQtStdDecorators::static_Qt_qRound ( double a)
inlineslot

Definition at line 124 of file PythonQtStdDecorators.h.

124{ return qRound(a); }

◆ static_Qt_qRound64

qint64 PythonQtStdDecorators::static_Qt_qRound64 ( double a)
inlineslot

Definition at line 125 of file PythonQtStdDecorators.h.

125{ return qRound64(a); }

◆ static_Qt_qsrand

void PythonQtStdDecorators::static_Qt_qsrand ( uint a)
inlineslot

Definition at line 137 of file PythonQtStdDecorators.h.

138 {
139#if (QT_VERSION < QT_VERSION_CHECK(5, 15, 0))
140 qsrand(a);
141#else
142 QRandomGenerator::global()->seed(a);
143#endif
144 }

◆ static_Qt_qVersion

const char * PythonQtStdDecorators::static_Qt_qVersion ( )
inlineslot

Definition at line 126 of file PythonQtStdDecorators.h.

126{ return qVersion(); }

◆ static_Qt_qWarning

void PythonQtStdDecorators::static_Qt_qWarning ( const QByteArray & msg)
inlineslot

Definition at line 115 of file PythonQtStdDecorators.h.

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

◆ static_Qt_SIGNAL

QString PythonQtStdDecorators::static_Qt_SIGNAL ( const QString & s)
inlineslot

Definition at line 148 of file PythonQtStdDecorators.h.

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

◆ static_Qt_SLOT

QString PythonQtStdDecorators::static_Qt_SLOT ( const QString & s)
inlineslot

Definition at line 149 of file PythonQtStdDecorators.h.

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

◆ static_QTimer_singleShot

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

References findChild(), findChildren(), and parent().

◆ 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: