1#ifndef _PYTHONQTUTILS_H
2#define _PYTHONQTUTILS_H
55#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
56 return method.methodSignature();
64#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
68 int idx =
sig.indexOf(
'(');
76#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
84 return method.typeName();
97#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
98 return QMetaType::fromName(className.constData()).id();
100 return QMetaType::type(className.constData());
107#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
110 return QMetaType::typeName(metaTypeId);
PyObject * PythonQtConvertPairToPython(const void *inPair, int metaTypeId)
const char * typeNameFromMetaTypeId(int metaTypeId)
Returns the type name from a meta type ID.
QByteArray methodName(const QMetaMethod &method)
QByteArray typeName(const QMetaMethod &method)
bool isPythonClassType(PyObject *obj)
Returns of the python object is a class type.
QByteArray signature(const QMetaMethod &method)
int metaTypeIdFromTypeName(const QByteArray &className)
Returns the meta type ID from a type name.