1#ifndef _PYTHONQTUTILS_H
2#define _PYTHONQTUTILS_H
55#if( QT_VERSION >= QT_VERSION_CHECK(5,0,0) )
56 return method.methodSignature();
63#if( QT_VERSION >= QT_VERSION_CHECK(5,0,0) )
67 int idx =
sig.indexOf(
'(');
74#if( QT_VERSION >= QT_VERSION_CHECK(5,0,0) )
82 return method.typeName();
98#if QT_VERSION >= QT_VERSION_CHECK(6,0,0)
99 return QMetaType::fromName(className.constData()).id();
101 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.