/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt for Python.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 3 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL3 included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 3 requirements
** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 2.0 or (at your option) the GNU General
** Public license version 3 or any later version approved by the KDE Free
** Qt Foundation. The licenses are as published by the Free Software
** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-2.0.html and
** https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/

//workaround to access protected functions
#define protected public

// default includes
#include <shiboken.h>
#ifndef QT_NO_VERSION_TAGGING
#  define QT_NO_VERSION_TAGGING
#endif
#include <QDebug>
#include <pysidesignal.h>
#include <pysideproperty.h>
#include <pyside.h>
#include <pysideqenum.h>
#include <feature_select.h>
QT_WARNING_DISABLE_DEPRECATED

#include <typeinfo>
#include <iterator>

// module include
#include "pyside6_qtqml_python.h"

// main header
#include "qjsmanagedvalue_wrapper.h"

// inner classes

// Extra includes
#include <QList>
#include <QtQml/qjsengine.h>
#include <QtQml/qjsmanagedvalue.h>
#include <QtQml/qjsprimitivevalue.h>
#include <QtQml/qjsvalue.h>
#include <qdatetime.h>
#include <qobject.h>
#include <qobjectdefs.h>
#include <qregularexpression.h>
#include <qurl.h>


#include <cctype>
#include <cstring>



template <class T>
static const char *typeNameOf(const T &t)
{
    const char *typeName =  typeid(t).name();
    auto size = std::strlen(typeName);
#if defined(Q_CC_MSVC) // MSVC: "class QPaintDevice * __ptr64"
    if (auto lastStar = strchr(typeName, '*')) {
        // MSVC: "class QPaintDevice * __ptr64"
        while (*--lastStar == ' ') {
        }
        size = lastStar - typeName + 1;
    }
#else // g++, Clang: "QPaintDevice *" -> "P12QPaintDevice"
    if (size > 2 && typeName[0] == 'P' && std::isdigit(typeName[1])) {
        ++typeName;
        --size;
    }
#endif
    char *result = new char[size + 1];
    result[size] = '\0';
    memcpy(result, typeName, size);
    return result;
}


// Target ---------------------------------------------------------

extern "C" {
static int
Sbk_QJSManagedValue_Init(PyObject *self, PyObject *args, PyObject *kwds)
{
    SbkObject *sbkSelf = reinterpret_cast<SbkObject *>(self);
    PySide::Feature::Select(self);
    if (Shiboken::Object::isUserType(self) && !Shiboken::ObjectType::canCallConstructor(self->ob_type, Shiboken::SbkType< ::QJSManagedValue >()))
        return -1;

    ::QJSManagedValue *cptr{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtQml.QJSManagedValue.__init__";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp[2];
    SBK_UNUSED(pythonToCpp)
    const Py_ssize_t numArgs = PyTuple_GET_SIZE(args);
    SBK_UNUSED(numArgs)
    PyObject *pyArgs[] = {0, 0};

    // invalid argument lengths
    if (numArgs == 1)
        goto Sbk_QJSManagedValue_Init_TypeError;

    if (!PyArg_UnpackTuple(args, "QJSManagedValue", 0, 2, &(pyArgs[0]), &(pyArgs[1])))
        return -1;


    // Overloaded function decisor
    // 0: QJSManagedValue::QJSManagedValue()
    // 1: QJSManagedValue::QJSManagedValue(QJSValue,QJSEngine*)
    // 2: QJSManagedValue::QJSManagedValue(QJSPrimitiveValue,QJSEngine*)
    // 3: QJSManagedValue::QJSManagedValue(QString,QJSEngine*)
    // 4: QJSManagedValue::QJSManagedValue(QVariant,QJSEngine*)
    if (numArgs == 0) {
        overloadId = 0; // QJSManagedValue()
    } else if (numArgs == 2
        && (pythonToCpp[0] = Shiboken::Conversions::pythonToCppConversion(SbkPySide6_QtCoreTypeConverters[SBK_QSTRING_IDX], (pyArgs[0])))
        && (pythonToCpp[1] = Shiboken::Conversions::pythonToCppPointerConversion(SbkPySide6_QtQmlTypes[SBK_QJSENGINE_IDX], (pyArgs[1])))) {
        overloadId = 3; // QJSManagedValue(QString,QJSEngine*)
    } else if (numArgs == 2
        && (pythonToCpp[0] = Shiboken::Conversions::pythonToCppReferenceConversion(SbkPySide6_QtQmlTypes[SBK_QJSPRIMITIVEVALUE_IDX], (pyArgs[0])))
        && (pythonToCpp[1] = Shiboken::Conversions::pythonToCppPointerConversion(SbkPySide6_QtQmlTypes[SBK_QJSENGINE_IDX], (pyArgs[1])))) {
        overloadId = 2; // QJSManagedValue(QJSPrimitiveValue,QJSEngine*)
    } else if (numArgs == 2
        && (pythonToCpp[0] = Shiboken::Conversions::pythonToCppValueConversion(SbkPySide6_QtQmlTypes[SBK_QJSVALUE_IDX], (pyArgs[0])))
        && (pythonToCpp[1] = Shiboken::Conversions::pythonToCppPointerConversion(SbkPySide6_QtQmlTypes[SBK_QJSENGINE_IDX], (pyArgs[1])))) {
        overloadId = 1; // QJSManagedValue(QJSValue,QJSEngine*)
    } else if (numArgs == 2
        && (pythonToCpp[0] = Shiboken::Conversions::pythonToCppConversion(SbkPySide6_QtCoreTypeConverters[SBK_QVARIANT_IDX], (pyArgs[0])))
        && (pythonToCpp[1] = Shiboken::Conversions::pythonToCppPointerConversion(SbkPySide6_QtQmlTypes[SBK_QJSENGINE_IDX], (pyArgs[1])))) {
        overloadId = 4; // QJSManagedValue(QVariant,QJSEngine*)
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QJSManagedValue_Init_TypeError;

    // Call function/method
    switch (overloadId) {
        case 0: // QJSManagedValue()
        {

            if (!PyErr_Occurred()) {
                // QJSManagedValue()
                cptr = new ::QJSManagedValue();
            }
            break;
        }
        case 1: // QJSManagedValue(QJSValue value, QJSEngine * engine)
        {
            if (!Shiboken::Object::isValid(pyArgs[0]))
                return -1;
            ::QJSValue cppArg0;
            pythonToCpp[0](pyArgs[0], &cppArg0);
            if (!Shiboken::Object::isValid(pyArgs[1]))
                return -1;
            ::QJSEngine *cppArg1;
            pythonToCpp[1](pyArgs[1], &cppArg1);

            if (!PyErr_Occurred()) {
                // QJSManagedValue(QJSValue,QJSEngine*)
                cptr = new ::QJSManagedValue(cppArg0, cppArg1);
            }
            break;
        }
        case 2: // QJSManagedValue(const QJSPrimitiveValue & value, QJSEngine * engine)
        {
            if (!Shiboken::Object::isValid(pyArgs[0]))
                return -1;
            ::QJSPrimitiveValue cppArg0_local;
            ::QJSPrimitiveValue *cppArg0 = &cppArg0_local;
            if (pythonToCpp[0].isValue())
                pythonToCpp[0](pyArgs[0], &cppArg0_local);
            else
                pythonToCpp[0](pyArgs[0], &cppArg0);

            if (!Shiboken::Object::isValid(pyArgs[1]))
                return -1;
            ::QJSEngine *cppArg1;
            pythonToCpp[1](pyArgs[1], &cppArg1);

            if (!PyErr_Occurred()) {
                // QJSManagedValue(QJSPrimitiveValue,QJSEngine*)
                cptr = new ::QJSManagedValue(*cppArg0, cppArg1);
            }
            break;
        }
        case 3: // QJSManagedValue(const QString & string, QJSEngine * engine)
        {
            ::QString cppArg0;
            pythonToCpp[0](pyArgs[0], &cppArg0);
            if (!Shiboken::Object::isValid(pyArgs[1]))
                return -1;
            ::QJSEngine *cppArg1;
            pythonToCpp[1](pyArgs[1], &cppArg1);

            if (!PyErr_Occurred()) {
                // QJSManagedValue(QString,QJSEngine*)
                cptr = new ::QJSManagedValue(cppArg0, cppArg1);
            }
            break;
        }
        case 4: // QJSManagedValue(const QVariant & variant, QJSEngine * engine)
        {
            ::QVariant cppArg0;
            pythonToCpp[0](pyArgs[0], &cppArg0);
            if (!Shiboken::Object::isValid(pyArgs[1]))
                return -1;
            ::QJSEngine *cppArg1;
            pythonToCpp[1](pyArgs[1], &cppArg1);

            if (!PyErr_Occurred()) {
                // QJSManagedValue(QVariant,QJSEngine*)
                cptr = new ::QJSManagedValue(cppArg0, cppArg1);
            }
            break;
        }
    }

    if (PyErr_Occurred() || !Shiboken::Object::setCppPointer(sbkSelf, Shiboken::SbkType< ::QJSManagedValue >(), cptr)) {
        delete cptr;
        return -1;
    }
    if (!cptr) goto Sbk_QJSManagedValue_Init_TypeError;

    Shiboken::Object::setValidCpp(sbkSelf, true);
    if (Shiboken::BindingManager::instance().hasWrapper(cptr)) {
        Shiboken::BindingManager::instance().releaseWrapper(Shiboken::BindingManager::instance().retrieveWrapper(cptr));
    }
    Shiboken::BindingManager::instance().registerWrapper(sbkSelf, cptr);


    return 1;

    Sbk_QJSManagedValue_Init_TypeError:
        Shiboken::setErrorAboutWrongArguments(args, fullName, errInfo);
        return -1;
}

static PyObject *Sbk_QJSManagedValueFunc_call(PyObject *self, PyObject *args, PyObject *kwds)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QJSManagedValue *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtQml.QJSManagedValue.call";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp[1];
    SBK_UNUSED(pythonToCpp)
    const Py_ssize_t numArgs = PyTuple_GET_SIZE(args);
    SBK_UNUSED(numArgs)
    PyObject *pyArgs[] = {0};

    // invalid argument lengths
    if (numArgs > 1) {
        static PyObject *const too_many = Shiboken::String::createStaticString(">");
        errInfo.reset(too_many);
        Py_INCREF(errInfo.object());
        goto Sbk_QJSManagedValueFunc_call_TypeError;
    }

    if (!PyArg_ParseTuple(args, "|O:call", &(pyArgs[0])))
        return {};


    // Overloaded function decisor
    // 0: QJSManagedValue::call(QList<QJSValue>)const->QJSValue
    if (numArgs == 0) {
        overloadId = 0; // call(QList<QJSValue>)const
    } else if (numArgs >= 1
        && (pythonToCpp[0] = Shiboken::Conversions::pythonToCppConversion(SbkPySide6_QtQmlTypeConverters[SBK_QTQML_QLIST_QJSVALUE_IDX], (pyArgs[0])))) {
        overloadId = 0; // call(QList<QJSValue>)const
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QJSManagedValueFunc_call_TypeError;

    // Call function/method
    {
        if (kwds && PyDict_Size(kwds) > 0) {
            PyObject *value{};
            Shiboken::AutoDecRef kwds_dup(PyDict_Copy(kwds));
            static PyObject *const key_arguments = Shiboken::String::createStaticString("arguments");
            if (PyDict_Contains(kwds, key_arguments)) {
                value = PyDict_GetItem(kwds, key_arguments);
                if (value && pyArgs[0]) {
                    errInfo.reset(key_arguments);
                    Py_INCREF(errInfo.object());
                    goto Sbk_QJSManagedValueFunc_call_TypeError;
                }
                if (value) {
                    pyArgs[0] = value;
                    if (!(pythonToCpp[0] = Shiboken::Conversions::pythonToCppConversion(SbkPySide6_QtQmlTypeConverters[SBK_QTQML_QLIST_QJSVALUE_IDX], (pyArgs[0]))))
                        goto Sbk_QJSManagedValueFunc_call_TypeError;
                }
                PyDict_DelItem(kwds_dup, key_arguments);
            }
            if (PyDict_Size(kwds_dup) > 0) {
                errInfo.reset(kwds_dup.release());
                goto Sbk_QJSManagedValueFunc_call_TypeError;
            }
        }
        ::QList<QJSValue > cppArg0;
        if (pythonToCpp[0])
            pythonToCpp[0](pyArgs[0], &cppArg0);

        if (!PyErr_Occurred()) {
            // call(QList<QJSValue>)const
            QJSValue cppResult = const_cast<const ::QJSManagedValue *>(cppSelf)->call(cppArg0);
            pyResult = Shiboken::Conversions::copyToPython(SbkPySide6_QtQmlTypes[SBK_QJSVALUE_IDX], &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;

    Sbk_QJSManagedValueFunc_call_TypeError:
        Shiboken::setErrorAboutWrongArguments(args, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QJSManagedValueFunc_callAsConstructor(PyObject *self, PyObject *args, PyObject *kwds)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QJSManagedValue *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtQml.QJSManagedValue.callAsConstructor";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp[1];
    SBK_UNUSED(pythonToCpp)
    const Py_ssize_t numArgs = PyTuple_GET_SIZE(args);
    SBK_UNUSED(numArgs)
    PyObject *pyArgs[] = {0};

    // invalid argument lengths
    if (numArgs > 1) {
        static PyObject *const too_many = Shiboken::String::createStaticString(">");
        errInfo.reset(too_many);
        Py_INCREF(errInfo.object());
        goto Sbk_QJSManagedValueFunc_callAsConstructor_TypeError;
    }

    if (!PyArg_ParseTuple(args, "|O:callAsConstructor", &(pyArgs[0])))
        return {};


    // Overloaded function decisor
    // 0: QJSManagedValue::callAsConstructor(QList<QJSValue>)const->QJSValue
    if (numArgs == 0) {
        overloadId = 0; // callAsConstructor(QList<QJSValue>)const
    } else if (numArgs >= 1
        && (pythonToCpp[0] = Shiboken::Conversions::pythonToCppConversion(SbkPySide6_QtQmlTypeConverters[SBK_QTQML_QLIST_QJSVALUE_IDX], (pyArgs[0])))) {
        overloadId = 0; // callAsConstructor(QList<QJSValue>)const
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QJSManagedValueFunc_callAsConstructor_TypeError;

    // Call function/method
    {
        if (kwds && PyDict_Size(kwds) > 0) {
            PyObject *value{};
            Shiboken::AutoDecRef kwds_dup(PyDict_Copy(kwds));
            static PyObject *const key_arguments = Shiboken::String::createStaticString("arguments");
            if (PyDict_Contains(kwds, key_arguments)) {
                value = PyDict_GetItem(kwds, key_arguments);
                if (value && pyArgs[0]) {
                    errInfo.reset(key_arguments);
                    Py_INCREF(errInfo.object());
                    goto Sbk_QJSManagedValueFunc_callAsConstructor_TypeError;
                }
                if (value) {
                    pyArgs[0] = value;
                    if (!(pythonToCpp[0] = Shiboken::Conversions::pythonToCppConversion(SbkPySide6_QtQmlTypeConverters[SBK_QTQML_QLIST_QJSVALUE_IDX], (pyArgs[0]))))
                        goto Sbk_QJSManagedValueFunc_callAsConstructor_TypeError;
                }
                PyDict_DelItem(kwds_dup, key_arguments);
            }
            if (PyDict_Size(kwds_dup) > 0) {
                errInfo.reset(kwds_dup.release());
                goto Sbk_QJSManagedValueFunc_callAsConstructor_TypeError;
            }
        }
        ::QList<QJSValue > cppArg0;
        if (pythonToCpp[0])
            pythonToCpp[0](pyArgs[0], &cppArg0);

        if (!PyErr_Occurred()) {
            // callAsConstructor(QList<QJSValue>)const
            QJSValue cppResult = const_cast<const ::QJSManagedValue *>(cppSelf)->callAsConstructor(cppArg0);
            pyResult = Shiboken::Conversions::copyToPython(SbkPySide6_QtQmlTypes[SBK_QJSVALUE_IDX], &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;

    Sbk_QJSManagedValueFunc_callAsConstructor_TypeError:
        Shiboken::setErrorAboutWrongArguments(args, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QJSManagedValueFunc_callWithInstance(PyObject *self, PyObject *args, PyObject *kwds)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QJSManagedValue *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtQml.QJSManagedValue.callWithInstance";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp[2];
    SBK_UNUSED(pythonToCpp)
    const Py_ssize_t numArgs = PyTuple_GET_SIZE(args);
    SBK_UNUSED(numArgs)
    PyObject *pyArgs[] = {0, 0};

    // invalid argument lengths
    if (numArgs > 2) {
        static PyObject *const too_many = Shiboken::String::createStaticString(">");
        errInfo.reset(too_many);
        Py_INCREF(errInfo.object());
        goto Sbk_QJSManagedValueFunc_callWithInstance_TypeError;
    } else if (numArgs < 1) {
        static PyObject *const too_few = Shiboken::String::createStaticString("<");
        errInfo.reset(too_few);
        Py_INCREF(errInfo.object());
        goto Sbk_QJSManagedValueFunc_callWithInstance_TypeError;
    }

    if (!PyArg_ParseTuple(args, "|OO:callWithInstance", &(pyArgs[0]), &(pyArgs[1])))
        return {};


    // Overloaded function decisor
    // 0: QJSManagedValue::callWithInstance(QJSValue,QList<QJSValue>)const->QJSValue
    if (numArgs >= 1
        && (pythonToCpp[0] = Shiboken::Conversions::pythonToCppReferenceConversion(SbkPySide6_QtQmlTypes[SBK_QJSVALUE_IDX], (pyArgs[0])))) {
        if (numArgs == 1) {
            overloadId = 0; // callWithInstance(QJSValue,QList<QJSValue>)const
        } else if (numArgs >= 2
            && (pythonToCpp[1] = Shiboken::Conversions::pythonToCppConversion(SbkPySide6_QtQmlTypeConverters[SBK_QTQML_QLIST_QJSVALUE_IDX], (pyArgs[1])))) {
            overloadId = 0; // callWithInstance(QJSValue,QList<QJSValue>)const
        }
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QJSManagedValueFunc_callWithInstance_TypeError;

    // Call function/method
    {
        if (kwds && PyDict_Size(kwds) > 0) {
            PyObject *value{};
            Shiboken::AutoDecRef kwds_dup(PyDict_Copy(kwds));
            static PyObject *const key_arguments = Shiboken::String::createStaticString("arguments");
            if (PyDict_Contains(kwds, key_arguments)) {
                value = PyDict_GetItem(kwds, key_arguments);
                if (value && pyArgs[1]) {
                    errInfo.reset(key_arguments);
                    Py_INCREF(errInfo.object());
                    goto Sbk_QJSManagedValueFunc_callWithInstance_TypeError;
                }
                if (value) {
                    pyArgs[1] = value;
                    if (!(pythonToCpp[1] = Shiboken::Conversions::pythonToCppConversion(SbkPySide6_QtQmlTypeConverters[SBK_QTQML_QLIST_QJSVALUE_IDX], (pyArgs[1]))))
                        goto Sbk_QJSManagedValueFunc_callWithInstance_TypeError;
                }
                PyDict_DelItem(kwds_dup, key_arguments);
            }
            if (PyDict_Size(kwds_dup) > 0) {
                errInfo.reset(kwds_dup.release());
                goto Sbk_QJSManagedValueFunc_callWithInstance_TypeError;
            }
        }
        if (!Shiboken::Object::isValid(pyArgs[0]))
            return {};
        ::QJSValue cppArg0_local;
        ::QJSValue *cppArg0 = &cppArg0_local;
        if (pythonToCpp[0].isValue())
            pythonToCpp[0](pyArgs[0], &cppArg0_local);
        else
            pythonToCpp[0](pyArgs[0], &cppArg0);

        ::QList<QJSValue > cppArg1;
        if (pythonToCpp[1])
            pythonToCpp[1](pyArgs[1], &cppArg1);

        if (!PyErr_Occurred()) {
            // callWithInstance(QJSValue,QList<QJSValue>)const
            QJSValue cppResult = const_cast<const ::QJSManagedValue *>(cppSelf)->callWithInstance(*cppArg0, cppArg1);
            pyResult = Shiboken::Conversions::copyToPython(SbkPySide6_QtQmlTypes[SBK_QJSVALUE_IDX], &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;

    Sbk_QJSManagedValueFunc_callWithInstance_TypeError:
        Shiboken::setErrorAboutWrongArguments(args, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QJSManagedValueFunc_deleteProperty(PyObject *self, PyObject *pyArg)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QJSManagedValue *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtQml.QJSManagedValue.deleteProperty";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: QJSManagedValue::deleteProperty(QString)->bool
    // 1: QJSManagedValue::deleteProperty(quint32)->bool
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(Shiboken::Conversions::PrimitiveTypeConverter<quint32>(), (pyArg)))) {
        overloadId = 1; // deleteProperty(quint32)
    } else if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(SbkPySide6_QtCoreTypeConverters[SBK_QSTRING_IDX], (pyArg)))) {
        overloadId = 0; // deleteProperty(QString)
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QJSManagedValueFunc_deleteProperty_TypeError;

    // Call function/method
    switch (overloadId) {
        case 0: // deleteProperty(const QString & name)
        {
            ::QString cppArg0;
            pythonToCpp(pyArg, &cppArg0);

            if (!PyErr_Occurred()) {
                // deleteProperty(QString)
                bool cppResult = cppSelf->deleteProperty(cppArg0);
                pyResult = Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<bool>(), &cppResult);
            }
            break;
        }
        case 1: // deleteProperty(quint32 arrayIndex)
        {
            quint32 cppArg0;
            pythonToCpp(pyArg, &cppArg0);

            if (!PyErr_Occurred()) {
                // deleteProperty(quint32)
                bool cppResult = cppSelf->deleteProperty(cppArg0);
                pyResult = Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<bool>(), &cppResult);
            }
            break;
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;

    Sbk_QJSManagedValueFunc_deleteProperty_TypeError:
        Shiboken::setErrorAboutWrongArguments(pyArg, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QJSManagedValueFunc_engine(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QJSManagedValue *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtQml.QJSManagedValue.engine";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // engine()const
            QJSEngine * cppResult = const_cast<const ::QJSManagedValue *>(cppSelf)->engine();
            pyResult = Shiboken::Conversions::pointerToPython(SbkPySide6_QtQmlTypes[SBK_QJSENGINE_IDX], cppResult);
            Shiboken::Object::setParent(self, pyResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QJSManagedValueFunc_equals(PyObject *self, PyObject *pyArg)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QJSManagedValue *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtQml.QJSManagedValue.equals";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: QJSManagedValue::equals(QJSManagedValue)const->bool
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppReferenceConversion(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_IDX], (pyArg)))) {
        overloadId = 0; // equals(QJSManagedValue)const
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QJSManagedValueFunc_equals_TypeError;

    // Call function/method
    {
        if (!Shiboken::Object::isValid(pyArg))
            return {};
        ::QJSManagedValue *cppArg0;
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // equals(QJSManagedValue)const
            bool cppResult = const_cast<const ::QJSManagedValue *>(cppSelf)->equals(*cppArg0);
            pyResult = Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<bool>(), &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;

    Sbk_QJSManagedValueFunc_equals_TypeError:
        Shiboken::setErrorAboutWrongArguments(pyArg, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QJSManagedValueFunc_hasOwnProperty(PyObject *self, PyObject *pyArg)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QJSManagedValue *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtQml.QJSManagedValue.hasOwnProperty";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: QJSManagedValue::hasOwnProperty(QString)const->bool
    // 1: QJSManagedValue::hasOwnProperty(quint32)const->bool
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(Shiboken::Conversions::PrimitiveTypeConverter<quint32>(), (pyArg)))) {
        overloadId = 1; // hasOwnProperty(quint32)const
    } else if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(SbkPySide6_QtCoreTypeConverters[SBK_QSTRING_IDX], (pyArg)))) {
        overloadId = 0; // hasOwnProperty(QString)const
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QJSManagedValueFunc_hasOwnProperty_TypeError;

    // Call function/method
    switch (overloadId) {
        case 0: // hasOwnProperty(const QString & name) const
        {
            ::QString cppArg0;
            pythonToCpp(pyArg, &cppArg0);

            if (!PyErr_Occurred()) {
                // hasOwnProperty(QString)const
                bool cppResult = const_cast<const ::QJSManagedValue *>(cppSelf)->hasOwnProperty(cppArg0);
                pyResult = Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<bool>(), &cppResult);
            }
            break;
        }
        case 1: // hasOwnProperty(quint32 arrayIndex) const
        {
            quint32 cppArg0;
            pythonToCpp(pyArg, &cppArg0);

            if (!PyErr_Occurred()) {
                // hasOwnProperty(quint32)const
                bool cppResult = const_cast<const ::QJSManagedValue *>(cppSelf)->hasOwnProperty(cppArg0);
                pyResult = Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<bool>(), &cppResult);
            }
            break;
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;

    Sbk_QJSManagedValueFunc_hasOwnProperty_TypeError:
        Shiboken::setErrorAboutWrongArguments(pyArg, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QJSManagedValueFunc_hasProperty(PyObject *self, PyObject *pyArg)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QJSManagedValue *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtQml.QJSManagedValue.hasProperty";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: QJSManagedValue::hasProperty(QString)const->bool
    // 1: QJSManagedValue::hasProperty(quint32)const->bool
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(Shiboken::Conversions::PrimitiveTypeConverter<quint32>(), (pyArg)))) {
        overloadId = 1; // hasProperty(quint32)const
    } else if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(SbkPySide6_QtCoreTypeConverters[SBK_QSTRING_IDX], (pyArg)))) {
        overloadId = 0; // hasProperty(QString)const
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QJSManagedValueFunc_hasProperty_TypeError;

    // Call function/method
    switch (overloadId) {
        case 0: // hasProperty(const QString & name) const
        {
            ::QString cppArg0;
            pythonToCpp(pyArg, &cppArg0);

            if (!PyErr_Occurred()) {
                // hasProperty(QString)const
                bool cppResult = const_cast<const ::QJSManagedValue *>(cppSelf)->hasProperty(cppArg0);
                pyResult = Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<bool>(), &cppResult);
            }
            break;
        }
        case 1: // hasProperty(quint32 arrayIndex) const
        {
            quint32 cppArg0;
            pythonToCpp(pyArg, &cppArg0);

            if (!PyErr_Occurred()) {
                // hasProperty(quint32)const
                bool cppResult = const_cast<const ::QJSManagedValue *>(cppSelf)->hasProperty(cppArg0);
                pyResult = Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<bool>(), &cppResult);
            }
            break;
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;

    Sbk_QJSManagedValueFunc_hasProperty_TypeError:
        Shiboken::setErrorAboutWrongArguments(pyArg, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QJSManagedValueFunc_isArray(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QJSManagedValue *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtQml.QJSManagedValue.isArray";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // isArray()const
            bool cppResult = const_cast<const ::QJSManagedValue *>(cppSelf)->isArray();
            pyResult = Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<bool>(), &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QJSManagedValueFunc_isBoolean(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QJSManagedValue *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtQml.QJSManagedValue.isBoolean";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // isBoolean()const
            bool cppResult = const_cast<const ::QJSManagedValue *>(cppSelf)->isBoolean();
            pyResult = Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<bool>(), &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QJSManagedValueFunc_isDate(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QJSManagedValue *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtQml.QJSManagedValue.isDate";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // isDate()const
            bool cppResult = const_cast<const ::QJSManagedValue *>(cppSelf)->isDate();
            pyResult = Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<bool>(), &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QJSManagedValueFunc_isError(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QJSManagedValue *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtQml.QJSManagedValue.isError";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // isError()const
            bool cppResult = const_cast<const ::QJSManagedValue *>(cppSelf)->isError();
            pyResult = Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<bool>(), &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QJSManagedValueFunc_isFunction(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QJSManagedValue *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtQml.QJSManagedValue.isFunction";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // isFunction()const
            bool cppResult = const_cast<const ::QJSManagedValue *>(cppSelf)->isFunction();
            pyResult = Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<bool>(), &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QJSManagedValueFunc_isInteger(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QJSManagedValue *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtQml.QJSManagedValue.isInteger";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // isInteger()const
            bool cppResult = const_cast<const ::QJSManagedValue *>(cppSelf)->isInteger();
            pyResult = Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<bool>(), &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QJSManagedValueFunc_isJsMetaType(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QJSManagedValue *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtQml.QJSManagedValue.isJsMetaType";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // isJsMetaType()const
            bool cppResult = const_cast<const ::QJSManagedValue *>(cppSelf)->isJsMetaType();
            pyResult = Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<bool>(), &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QJSManagedValueFunc_isNull(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QJSManagedValue *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtQml.QJSManagedValue.isNull";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // isNull()const
            bool cppResult = const_cast<const ::QJSManagedValue *>(cppSelf)->isNull();
            pyResult = Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<bool>(), &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QJSManagedValueFunc_isNumber(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QJSManagedValue *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtQml.QJSManagedValue.isNumber";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // isNumber()const
            bool cppResult = const_cast<const ::QJSManagedValue *>(cppSelf)->isNumber();
            pyResult = Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<bool>(), &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QJSManagedValueFunc_isObject(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QJSManagedValue *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtQml.QJSManagedValue.isObject";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // isObject()const
            bool cppResult = const_cast<const ::QJSManagedValue *>(cppSelf)->isObject();
            pyResult = Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<bool>(), &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QJSManagedValueFunc_isQMetaObject(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QJSManagedValue *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtQml.QJSManagedValue.isQMetaObject";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // isQMetaObject()const
            bool cppResult = const_cast<const ::QJSManagedValue *>(cppSelf)->isQMetaObject();
            pyResult = Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<bool>(), &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QJSManagedValueFunc_isQObject(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QJSManagedValue *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtQml.QJSManagedValue.isQObject";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // isQObject()const
            bool cppResult = const_cast<const ::QJSManagedValue *>(cppSelf)->isQObject();
            pyResult = Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<bool>(), &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QJSManagedValueFunc_isRegularExpression(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QJSManagedValue *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtQml.QJSManagedValue.isRegularExpression";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // isRegularExpression()const
            bool cppResult = const_cast<const ::QJSManagedValue *>(cppSelf)->isRegularExpression();
            pyResult = Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<bool>(), &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QJSManagedValueFunc_isString(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QJSManagedValue *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtQml.QJSManagedValue.isString";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // isString()const
            bool cppResult = const_cast<const ::QJSManagedValue *>(cppSelf)->isString();
            pyResult = Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<bool>(), &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QJSManagedValueFunc_isSymbol(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QJSManagedValue *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtQml.QJSManagedValue.isSymbol";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // isSymbol()const
            bool cppResult = const_cast<const ::QJSManagedValue *>(cppSelf)->isSymbol();
            pyResult = Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<bool>(), &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QJSManagedValueFunc_isUndefined(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QJSManagedValue *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtQml.QJSManagedValue.isUndefined";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // isUndefined()const
            bool cppResult = const_cast<const ::QJSManagedValue *>(cppSelf)->isUndefined();
            pyResult = Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<bool>(), &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QJSManagedValueFunc_isUrl(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QJSManagedValue *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtQml.QJSManagedValue.isUrl";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // isUrl()const
            bool cppResult = const_cast<const ::QJSManagedValue *>(cppSelf)->isUrl();
            pyResult = Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<bool>(), &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QJSManagedValueFunc_isVariant(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QJSManagedValue *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtQml.QJSManagedValue.isVariant";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // isVariant()const
            bool cppResult = const_cast<const ::QJSManagedValue *>(cppSelf)->isVariant();
            pyResult = Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<bool>(), &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QJSManagedValueFunc_jsMetaInstantiate(PyObject *self, PyObject *args, PyObject *kwds)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QJSManagedValue *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtQml.QJSManagedValue.jsMetaInstantiate";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp[1];
    SBK_UNUSED(pythonToCpp)
    const Py_ssize_t numArgs = PyTuple_GET_SIZE(args);
    SBK_UNUSED(numArgs)
    PyObject *pyArgs[] = {0};

    // invalid argument lengths
    if (numArgs > 1) {
        static PyObject *const too_many = Shiboken::String::createStaticString(">");
        errInfo.reset(too_many);
        Py_INCREF(errInfo.object());
        goto Sbk_QJSManagedValueFunc_jsMetaInstantiate_TypeError;
    }

    if (!PyArg_ParseTuple(args, "|O:jsMetaInstantiate", &(pyArgs[0])))
        return {};


    // Overloaded function decisor
    // 0: QJSManagedValue::jsMetaInstantiate(QList<QJSValue>)const->QJSManagedValue
    if (numArgs == 0) {
        overloadId = 0; // jsMetaInstantiate(QList<QJSValue>)const
    } else if (numArgs >= 1
        && (pythonToCpp[0] = Shiboken::Conversions::pythonToCppConversion(SbkPySide6_QtQmlTypeConverters[SBK_QTQML_QLIST_QJSVALUE_IDX], (pyArgs[0])))) {
        overloadId = 0; // jsMetaInstantiate(QList<QJSValue>)const
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QJSManagedValueFunc_jsMetaInstantiate_TypeError;

    // Call function/method
    {
        if (kwds && PyDict_Size(kwds) > 0) {
            PyObject *value{};
            Shiboken::AutoDecRef kwds_dup(PyDict_Copy(kwds));
            static PyObject *const key_values = Shiboken::String::createStaticString("values");
            if (PyDict_Contains(kwds, key_values)) {
                value = PyDict_GetItem(kwds, key_values);
                if (value && pyArgs[0]) {
                    errInfo.reset(key_values);
                    Py_INCREF(errInfo.object());
                    goto Sbk_QJSManagedValueFunc_jsMetaInstantiate_TypeError;
                }
                if (value) {
                    pyArgs[0] = value;
                    if (!(pythonToCpp[0] = Shiboken::Conversions::pythonToCppConversion(SbkPySide6_QtQmlTypeConverters[SBK_QTQML_QLIST_QJSVALUE_IDX], (pyArgs[0]))))
                        goto Sbk_QJSManagedValueFunc_jsMetaInstantiate_TypeError;
                }
                PyDict_DelItem(kwds_dup, key_values);
            }
            if (PyDict_Size(kwds_dup) > 0) {
                errInfo.reset(kwds_dup.release());
                goto Sbk_QJSManagedValueFunc_jsMetaInstantiate_TypeError;
            }
        }
        ::QList<QJSValue > cppArg0;
        if (pythonToCpp[0])
            pythonToCpp[0](pyArgs[0], &cppArg0);

        if (!PyErr_Occurred()) {
            // jsMetaInstantiate(QList<QJSValue>)const
            QJSManagedValue* cppResult = new QJSManagedValue(const_cast<const ::QJSManagedValue *>(cppSelf)->jsMetaInstantiate(cppArg0));
            pyResult = Shiboken::Object::newObject(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_IDX], cppResult, true, true);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;

    Sbk_QJSManagedValueFunc_jsMetaInstantiate_TypeError:
        Shiboken::setErrorAboutWrongArguments(args, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QJSManagedValueFunc_jsMetaMembers(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QJSManagedValue *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtQml.QJSManagedValue.jsMetaMembers";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // jsMetaMembers()const
            QStringList cppResult = const_cast<const ::QJSManagedValue *>(cppSelf)->jsMetaMembers();
            pyResult = Shiboken::Conversions::copyToPython(SbkPySide6_QtCoreTypeConverters[SBK_QSTRINGLIST_IDX], &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QJSManagedValueFunc_jsMetaType(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QJSManagedValue *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtQml.QJSManagedValue.jsMetaType";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // jsMetaType()const
            QJSManagedValue* cppResult = new QJSManagedValue(const_cast<const ::QJSManagedValue *>(cppSelf)->jsMetaType());
            pyResult = Shiboken::Object::newObject(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_IDX], cppResult, true, true);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QJSManagedValueFunc_property(PyObject *self, PyObject *pyArg)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QJSManagedValue *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtQml.QJSManagedValue.property";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: QJSManagedValue::property(QString)const->QJSValue
    // 1: QJSManagedValue::property(quint32)const->QJSValue
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(Shiboken::Conversions::PrimitiveTypeConverter<quint32>(), (pyArg)))) {
        overloadId = 1; // property(quint32)const
    } else if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(SbkPySide6_QtCoreTypeConverters[SBK_QSTRING_IDX], (pyArg)))) {
        overloadId = 0; // property(QString)const
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QJSManagedValueFunc_property_TypeError;

    // Call function/method
    switch (overloadId) {
        case 0: // property(const QString & name) const
        {
            ::QString cppArg0;
            pythonToCpp(pyArg, &cppArg0);

            if (!PyErr_Occurred()) {
                // property(QString)const
                QJSValue cppResult = const_cast<const ::QJSManagedValue *>(cppSelf)->property(cppArg0);
                pyResult = Shiboken::Conversions::copyToPython(SbkPySide6_QtQmlTypes[SBK_QJSVALUE_IDX], &cppResult);
            }
            break;
        }
        case 1: // property(quint32 arrayIndex) const
        {
            quint32 cppArg0;
            pythonToCpp(pyArg, &cppArg0);

            if (!PyErr_Occurred()) {
                // property(quint32)const
                QJSValue cppResult = const_cast<const ::QJSManagedValue *>(cppSelf)->property(cppArg0);
                pyResult = Shiboken::Conversions::copyToPython(SbkPySide6_QtQmlTypes[SBK_QJSVALUE_IDX], &cppResult);
            }
            break;
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;

    Sbk_QJSManagedValueFunc_property_TypeError:
        Shiboken::setErrorAboutWrongArguments(pyArg, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QJSManagedValueFunc_prototype(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QJSManagedValue *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtQml.QJSManagedValue.prototype";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // prototype()const
            QJSManagedValue* cppResult = new QJSManagedValue(const_cast<const ::QJSManagedValue *>(cppSelf)->prototype());
            pyResult = Shiboken::Object::newObject(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_IDX], cppResult, true, true);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QJSManagedValueFunc_setProperty(PyObject *self, PyObject *args)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QJSManagedValue *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtQml.QJSManagedValue.setProperty";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp[2];
    SBK_UNUSED(pythonToCpp)
    const Py_ssize_t numArgs = PyTuple_GET_SIZE(args);
    SBK_UNUSED(numArgs)
    PyObject *pyArgs[] = {0, 0};

    // invalid argument lengths


    if (!PyArg_UnpackTuple(args, "setProperty", 2, 2, &(pyArgs[0]), &(pyArgs[1])))
        return {};


    // Overloaded function decisor
    // 0: QJSManagedValue::setProperty(QString,QJSValue)
    // 1: QJSManagedValue::setProperty(quint32,QJSValue)
    if (numArgs == 2
        && (pythonToCpp[0] = Shiboken::Conversions::pythonToCppConversion(Shiboken::Conversions::PrimitiveTypeConverter<quint32>(), (pyArgs[0])))
        && (pythonToCpp[1] = Shiboken::Conversions::pythonToCppReferenceConversion(SbkPySide6_QtQmlTypes[SBK_QJSVALUE_IDX], (pyArgs[1])))) {
        overloadId = 1; // setProperty(quint32,QJSValue)
    } else if (numArgs == 2
        && (pythonToCpp[0] = Shiboken::Conversions::pythonToCppConversion(SbkPySide6_QtCoreTypeConverters[SBK_QSTRING_IDX], (pyArgs[0])))
        && (pythonToCpp[1] = Shiboken::Conversions::pythonToCppReferenceConversion(SbkPySide6_QtQmlTypes[SBK_QJSVALUE_IDX], (pyArgs[1])))) {
        overloadId = 0; // setProperty(QString,QJSValue)
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QJSManagedValueFunc_setProperty_TypeError;

    // Call function/method
    switch (overloadId) {
        case 0: // setProperty(const QString & name, const QJSValue & value)
        {
            ::QString cppArg0;
            pythonToCpp[0](pyArgs[0], &cppArg0);
            if (!Shiboken::Object::isValid(pyArgs[1]))
                return {};
            ::QJSValue cppArg1_local;
            ::QJSValue *cppArg1 = &cppArg1_local;
            if (pythonToCpp[1].isValue())
                pythonToCpp[1](pyArgs[1], &cppArg1_local);
            else
                pythonToCpp[1](pyArgs[1], &cppArg1);


            if (!PyErr_Occurred()) {
                // setProperty(QString,QJSValue)
                cppSelf->setProperty(cppArg0, *cppArg1);
            }
            break;
        }
        case 1: // setProperty(quint32 arrayIndex, const QJSValue & value)
        {
            quint32 cppArg0;
            pythonToCpp[0](pyArgs[0], &cppArg0);
            if (!Shiboken::Object::isValid(pyArgs[1]))
                return {};
            ::QJSValue cppArg1_local;
            ::QJSValue *cppArg1 = &cppArg1_local;
            if (pythonToCpp[1].isValue())
                pythonToCpp[1](pyArgs[1], &cppArg1_local);
            else
                pythonToCpp[1](pyArgs[1], &cppArg1);


            if (!PyErr_Occurred()) {
                // setProperty(quint32,QJSValue)
                cppSelf->setProperty(cppArg0, *cppArg1);
            }
            break;
        }
    }

    if (PyErr_Occurred()) {
        return {};
    }
    Py_RETURN_NONE;

    Sbk_QJSManagedValueFunc_setProperty_TypeError:
        Shiboken::setErrorAboutWrongArguments(args, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QJSManagedValueFunc_setPrototype(PyObject *self, PyObject *pyArg)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QJSManagedValue *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtQml.QJSManagedValue.setPrototype";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: QJSManagedValue::setPrototype(QJSManagedValue)
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppReferenceConversion(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_IDX], (pyArg)))) {
        overloadId = 0; // setPrototype(QJSManagedValue)
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QJSManagedValueFunc_setPrototype_TypeError;

    // Call function/method
    {
        if (!Shiboken::Object::isValid(pyArg))
            return {};
        ::QJSManagedValue *cppArg0;
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // setPrototype(QJSManagedValue)
            cppSelf->setPrototype(*cppArg0);
        }
    }

    if (PyErr_Occurred()) {
        return {};
    }
    Py_RETURN_NONE;

    Sbk_QJSManagedValueFunc_setPrototype_TypeError:
        Shiboken::setErrorAboutWrongArguments(pyArg, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QJSManagedValueFunc_strictlyEquals(PyObject *self, PyObject *pyArg)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QJSManagedValue *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtQml.QJSManagedValue.strictlyEquals";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: QJSManagedValue::strictlyEquals(QJSManagedValue)const->bool
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppReferenceConversion(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_IDX], (pyArg)))) {
        overloadId = 0; // strictlyEquals(QJSManagedValue)const
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QJSManagedValueFunc_strictlyEquals_TypeError;

    // Call function/method
    {
        if (!Shiboken::Object::isValid(pyArg))
            return {};
        ::QJSManagedValue *cppArg0;
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // strictlyEquals(QJSManagedValue)const
            bool cppResult = const_cast<const ::QJSManagedValue *>(cppSelf)->strictlyEquals(*cppArg0);
            pyResult = Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<bool>(), &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;

    Sbk_QJSManagedValueFunc_strictlyEquals_TypeError:
        Shiboken::setErrorAboutWrongArguments(pyArg, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QJSManagedValueFunc_toBoolean(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QJSManagedValue *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtQml.QJSManagedValue.toBoolean";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // toBoolean()const
            bool cppResult = const_cast<const ::QJSManagedValue *>(cppSelf)->toBoolean();
            pyResult = Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<bool>(), &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QJSManagedValueFunc_toDateTime(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QJSManagedValue *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtQml.QJSManagedValue.toDateTime";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // toDateTime()const
            QDateTime cppResult = const_cast<const ::QJSManagedValue *>(cppSelf)->toDateTime();
            pyResult = Shiboken::Conversions::copyToPython(SbkPySide6_QtCoreTypes[SBK_QDATETIME_IDX], &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QJSManagedValueFunc_toInteger(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QJSManagedValue *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtQml.QJSManagedValue.toInteger";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // toInteger()const
            int cppResult = const_cast<const ::QJSManagedValue *>(cppSelf)->toInteger();
            pyResult = Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<int>(), &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QJSManagedValueFunc_toJSValue(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QJSManagedValue *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtQml.QJSManagedValue.toJSValue";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // toJSValue()const
            QJSValue cppResult = const_cast<const ::QJSManagedValue *>(cppSelf)->toJSValue();
            pyResult = Shiboken::Conversions::copyToPython(SbkPySide6_QtQmlTypes[SBK_QJSVALUE_IDX], &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QJSManagedValueFunc_toNumber(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QJSManagedValue *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtQml.QJSManagedValue.toNumber";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // toNumber()const
            double cppResult = const_cast<const ::QJSManagedValue *>(cppSelf)->toNumber();
            pyResult = Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<double>(), &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QJSManagedValueFunc_toPrimitive(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QJSManagedValue *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtQml.QJSManagedValue.toPrimitive";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // toPrimitive()const
            QJSPrimitiveValue cppResult = const_cast<const ::QJSManagedValue *>(cppSelf)->toPrimitive();
            pyResult = Shiboken::Conversions::copyToPython(SbkPySide6_QtQmlTypes[SBK_QJSPRIMITIVEVALUE_IDX], &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QJSManagedValueFunc_toQMetaObject(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QJSManagedValue *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtQml.QJSManagedValue.toQMetaObject";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // toQMetaObject()const
            const QMetaObject * cppResult = const_cast<const ::QJSManagedValue *>(cppSelf)->toQMetaObject();
            pyResult = Shiboken::Conversions::pointerToPython(SbkPySide6_QtCoreTypes[SBK_QMETAOBJECT_IDX], cppResult);
            Shiboken::Object::setParent(self, pyResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QJSManagedValueFunc_toQObject(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QJSManagedValue *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtQml.QJSManagedValue.toQObject";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // toQObject()const
            QObject * cppResult = const_cast<const ::QJSManagedValue *>(cppSelf)->toQObject();
            pyResult = Shiboken::Conversions::pointerToPython(SbkPySide6_QtCoreTypes[SBK_QOBJECT_IDX], cppResult);
            Shiboken::Object::setParent(self, pyResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QJSManagedValueFunc_toRegularExpression(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QJSManagedValue *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtQml.QJSManagedValue.toRegularExpression";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // toRegularExpression()const
            QRegularExpression cppResult = const_cast<const ::QJSManagedValue *>(cppSelf)->toRegularExpression();
            pyResult = Shiboken::Conversions::copyToPython(SbkPySide6_QtCoreTypes[SBK_QREGULAREXPRESSION_IDX], &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QJSManagedValueFunc_toString(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QJSManagedValue *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtQml.QJSManagedValue.toString";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // toString()const
            QString cppResult = const_cast<const ::QJSManagedValue *>(cppSelf)->toString();
            pyResult = Shiboken::Conversions::copyToPython(SbkPySide6_QtCoreTypeConverters[SBK_QSTRING_IDX], &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QJSManagedValueFunc_toUrl(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QJSManagedValue *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtQml.QJSManagedValue.toUrl";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // toUrl()const
            QUrl cppResult = const_cast<const ::QJSManagedValue *>(cppSelf)->toUrl();
            pyResult = Shiboken::Conversions::copyToPython(SbkPySide6_QtCoreTypes[SBK_QURL_IDX], &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QJSManagedValueFunc_toVariant(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QJSManagedValue *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtQml.QJSManagedValue.toVariant";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // toVariant()const
            QVariant cppResult = const_cast<const ::QJSManagedValue *>(cppSelf)->toVariant();
            pyResult = Shiboken::Conversions::copyToPython(SbkPySide6_QtCoreTypeConverters[SBK_QVARIANT_IDX], &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QJSManagedValueFunc_type(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QJSManagedValue *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtQml.QJSManagedValue.type";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // type()const
            QJSManagedValue::Type cppResult = const_cast<const ::QJSManagedValue *>(cppSelf)->type();
            pyResult = Shiboken::Conversions::copyToPython(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_TYPE_IDX]))->converter, &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}


static const char *Sbk_QJSManagedValue_PropertyStrings[] = {
    nullptr // Sentinel
};

static PyMethodDef Sbk_QJSManagedValue_methods[] = {
    {"call", reinterpret_cast<PyCFunction>(Sbk_QJSManagedValueFunc_call), METH_VARARGS|METH_KEYWORDS},
    {"callAsConstructor", reinterpret_cast<PyCFunction>(Sbk_QJSManagedValueFunc_callAsConstructor), METH_VARARGS|METH_KEYWORDS},
    {"callWithInstance", reinterpret_cast<PyCFunction>(Sbk_QJSManagedValueFunc_callWithInstance), METH_VARARGS|METH_KEYWORDS},
    {"deleteProperty", reinterpret_cast<PyCFunction>(Sbk_QJSManagedValueFunc_deleteProperty), METH_O},
    {"engine", reinterpret_cast<PyCFunction>(Sbk_QJSManagedValueFunc_engine), METH_NOARGS},
    {"equals", reinterpret_cast<PyCFunction>(Sbk_QJSManagedValueFunc_equals), METH_O},
    {"hasOwnProperty", reinterpret_cast<PyCFunction>(Sbk_QJSManagedValueFunc_hasOwnProperty), METH_O},
    {"hasProperty", reinterpret_cast<PyCFunction>(Sbk_QJSManagedValueFunc_hasProperty), METH_O},
    {"isArray", reinterpret_cast<PyCFunction>(Sbk_QJSManagedValueFunc_isArray), METH_NOARGS},
    {"isBoolean", reinterpret_cast<PyCFunction>(Sbk_QJSManagedValueFunc_isBoolean), METH_NOARGS},
    {"isDate", reinterpret_cast<PyCFunction>(Sbk_QJSManagedValueFunc_isDate), METH_NOARGS},
    {"isError", reinterpret_cast<PyCFunction>(Sbk_QJSManagedValueFunc_isError), METH_NOARGS},
    {"isFunction", reinterpret_cast<PyCFunction>(Sbk_QJSManagedValueFunc_isFunction), METH_NOARGS},
    {"isInteger", reinterpret_cast<PyCFunction>(Sbk_QJSManagedValueFunc_isInteger), METH_NOARGS},
    {"isJsMetaType", reinterpret_cast<PyCFunction>(Sbk_QJSManagedValueFunc_isJsMetaType), METH_NOARGS},
    {"isNull", reinterpret_cast<PyCFunction>(Sbk_QJSManagedValueFunc_isNull), METH_NOARGS},
    {"isNumber", reinterpret_cast<PyCFunction>(Sbk_QJSManagedValueFunc_isNumber), METH_NOARGS},
    {"isObject", reinterpret_cast<PyCFunction>(Sbk_QJSManagedValueFunc_isObject), METH_NOARGS},
    {"isQMetaObject", reinterpret_cast<PyCFunction>(Sbk_QJSManagedValueFunc_isQMetaObject), METH_NOARGS},
    {"isQObject", reinterpret_cast<PyCFunction>(Sbk_QJSManagedValueFunc_isQObject), METH_NOARGS},
    {"isRegularExpression", reinterpret_cast<PyCFunction>(Sbk_QJSManagedValueFunc_isRegularExpression), METH_NOARGS},
    {"isString", reinterpret_cast<PyCFunction>(Sbk_QJSManagedValueFunc_isString), METH_NOARGS},
    {"isSymbol", reinterpret_cast<PyCFunction>(Sbk_QJSManagedValueFunc_isSymbol), METH_NOARGS},
    {"isUndefined", reinterpret_cast<PyCFunction>(Sbk_QJSManagedValueFunc_isUndefined), METH_NOARGS},
    {"isUrl", reinterpret_cast<PyCFunction>(Sbk_QJSManagedValueFunc_isUrl), METH_NOARGS},
    {"isVariant", reinterpret_cast<PyCFunction>(Sbk_QJSManagedValueFunc_isVariant), METH_NOARGS},
    {"jsMetaInstantiate", reinterpret_cast<PyCFunction>(Sbk_QJSManagedValueFunc_jsMetaInstantiate), METH_VARARGS|METH_KEYWORDS},
    {"jsMetaMembers", reinterpret_cast<PyCFunction>(Sbk_QJSManagedValueFunc_jsMetaMembers), METH_NOARGS},
    {"jsMetaType", reinterpret_cast<PyCFunction>(Sbk_QJSManagedValueFunc_jsMetaType), METH_NOARGS},
    {"property", reinterpret_cast<PyCFunction>(Sbk_QJSManagedValueFunc_property), METH_O},
    {"prototype", reinterpret_cast<PyCFunction>(Sbk_QJSManagedValueFunc_prototype), METH_NOARGS},
    {"setProperty", reinterpret_cast<PyCFunction>(Sbk_QJSManagedValueFunc_setProperty), METH_VARARGS},
    {"setPrototype", reinterpret_cast<PyCFunction>(Sbk_QJSManagedValueFunc_setPrototype), METH_O},
    {"strictlyEquals", reinterpret_cast<PyCFunction>(Sbk_QJSManagedValueFunc_strictlyEquals), METH_O},
    {"toBoolean", reinterpret_cast<PyCFunction>(Sbk_QJSManagedValueFunc_toBoolean), METH_NOARGS},
    {"toDateTime", reinterpret_cast<PyCFunction>(Sbk_QJSManagedValueFunc_toDateTime), METH_NOARGS},
    {"toInteger", reinterpret_cast<PyCFunction>(Sbk_QJSManagedValueFunc_toInteger), METH_NOARGS},
    {"toJSValue", reinterpret_cast<PyCFunction>(Sbk_QJSManagedValueFunc_toJSValue), METH_NOARGS},
    {"toNumber", reinterpret_cast<PyCFunction>(Sbk_QJSManagedValueFunc_toNumber), METH_NOARGS},
    {"toPrimitive", reinterpret_cast<PyCFunction>(Sbk_QJSManagedValueFunc_toPrimitive), METH_NOARGS},
    {"toQMetaObject", reinterpret_cast<PyCFunction>(Sbk_QJSManagedValueFunc_toQMetaObject), METH_NOARGS},
    {"toQObject", reinterpret_cast<PyCFunction>(Sbk_QJSManagedValueFunc_toQObject), METH_NOARGS},
    {"toRegularExpression", reinterpret_cast<PyCFunction>(Sbk_QJSManagedValueFunc_toRegularExpression), METH_NOARGS},
    {"toString", reinterpret_cast<PyCFunction>(Sbk_QJSManagedValueFunc_toString), METH_NOARGS},
    {"toUrl", reinterpret_cast<PyCFunction>(Sbk_QJSManagedValueFunc_toUrl), METH_NOARGS},
    {"toVariant", reinterpret_cast<PyCFunction>(Sbk_QJSManagedValueFunc_toVariant), METH_NOARGS},
    {"type", reinterpret_cast<PyCFunction>(Sbk_QJSManagedValueFunc_type), METH_NOARGS},

    {nullptr, nullptr} // Sentinel
};

static int Sbk_QJSManagedValue___nb_bool(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return -1;
    auto cppSelf = reinterpret_cast< ::QJSManagedValue *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    return cppSelf->isNull() ? 0 : 1;
}

} // extern "C"

static int Sbk_QJSManagedValue_traverse(PyObject *self, visitproc visit, void *arg)
{
    return SbkObject_TypeF()->tp_traverse(self, visit, arg);
}
static int Sbk_QJSManagedValue_clear(PyObject *self)
{
    return reinterpret_cast<PyTypeObject *>(SbkObject_TypeF())->tp_clear(self);
}
// Class Definition -----------------------------------------------
extern "C" {
static PyTypeObject *_Sbk_QJSManagedValue_Type = nullptr;
static PyTypeObject *Sbk_QJSManagedValue_TypeF(void)
{
    return _Sbk_QJSManagedValue_Type;
}

static PyType_Slot Sbk_QJSManagedValue_slots[] = {
    {Py_tp_base,        nullptr}, // inserted by introduceWrapperType
    {Py_tp_dealloc,     reinterpret_cast<void *>(&SbkDeallocWrapper)},
    {Py_tp_repr,        nullptr},
    {Py_tp_hash,        nullptr},
    {Py_tp_call,        nullptr},
    {Py_tp_str,         nullptr},
    {Py_tp_getattro,    nullptr},
    {Py_tp_setattro,    nullptr},
    {Py_tp_traverse,    reinterpret_cast<void *>(Sbk_QJSManagedValue_traverse)},
    {Py_tp_clear,       reinterpret_cast<void *>(Sbk_QJSManagedValue_clear)},
    {Py_tp_richcompare, nullptr},
    {Py_tp_iter,        nullptr},
    {Py_tp_iternext,    nullptr},
    {Py_tp_methods,     reinterpret_cast<void *>(Sbk_QJSManagedValue_methods)},
    {Py_tp_getset,      nullptr},
    {Py_tp_init,        reinterpret_cast<void *>(Sbk_QJSManagedValue_Init)},
    {Py_tp_new,         reinterpret_cast<void *>(SbkObjectTpNew)},
    // type supports number protocol
    {Py_nb_bool, reinterpret_cast<void *>(Sbk_QJSManagedValue___nb_bool)},
    {0, nullptr}
};
static PyType_Spec Sbk_QJSManagedValue_spec = {
    "2:PySide6.QtQml.QJSManagedValue",
    sizeof(SbkObject),
    0,
    Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
    Sbk_QJSManagedValue_slots
};

} //extern "C"


// Type conversion functions.

// Python to C++ enum conversion.
static void QJSManagedValue_Type_PythonToCpp_QJSManagedValue_Type(PyObject *pyIn, void *cppOut)
{
    *reinterpret_cast<::QJSManagedValue::Type *>(cppOut) =
        static_cast<::QJSManagedValue::Type>(Shiboken::Enum::getValue(pyIn));

}
static PythonToCppFunc is_QJSManagedValue_Type_PythonToCpp_QJSManagedValue_Type_Convertible(PyObject *pyIn)
{
    if (PyObject_TypeCheck(pyIn, SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_TYPE_IDX]))
        return QJSManagedValue_Type_PythonToCpp_QJSManagedValue_Type;
    return {};
}
static PyObject *QJSManagedValue_Type_CppToPython_QJSManagedValue_Type(const void *cppIn)
{
    const int castCppIn = int(*reinterpret_cast<const ::QJSManagedValue::Type *>(cppIn));
    return Shiboken::Enum::newItem(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_TYPE_IDX], castCppIn);

}

// Python to C++ pointer conversion - returns the C++ object of the Python wrapper (keeps object identity).
static void QJSManagedValue_PythonToCpp_QJSManagedValue_PTR(PyObject *pyIn, void *cppOut)
{
    Shiboken::Conversions::pythonToCppPointer(Sbk_QJSManagedValue_TypeF(), pyIn, cppOut);
}
static PythonToCppFunc is_QJSManagedValue_PythonToCpp_QJSManagedValue_PTR_Convertible(PyObject *pyIn)
{
    if (pyIn == Py_None)
        return Shiboken::Conversions::nonePythonToCppNullPtr;
    if (PyObject_TypeCheck(pyIn, reinterpret_cast<PyTypeObject *>(Sbk_QJSManagedValue_TypeF())))
        return QJSManagedValue_PythonToCpp_QJSManagedValue_PTR;
    return {};
}

// C++ to Python pointer conversion - tries to find the Python wrapper for the C++ object (keeps object identity).
static PyObject *QJSManagedValue_PTR_CppToPython_QJSManagedValue(const void *cppIn)
{
    auto pyOut = reinterpret_cast<PyObject *>(Shiboken::BindingManager::instance().retrieveWrapper(cppIn));
    if (pyOut) {
        Py_INCREF(pyOut);
        return pyOut;
    }
    bool changedTypeName = false;
    auto tCppIn = reinterpret_cast<const ::QJSManagedValue *>(cppIn);
    const char *typeName = typeid(*tCppIn).name();
    auto sbkType = Shiboken::ObjectType::typeForTypeName(typeName);
    if (sbkType && Shiboken::ObjectType::hasSpecialCastFunction(sbkType)) {
        typeName = typeNameOf(tCppIn);
        changedTypeName = true;
    }
    PyObject *result = Shiboken::Object::newObject(Sbk_QJSManagedValue_TypeF(), const_cast<void *>(cppIn), false, /* exactType */ changedTypeName, typeName);
    if (changedTypeName)
        delete [] typeName;
    return result;
}

// The signatures string for the functions.
// Multiple signatures have their index "n:" in front.
static const char *QJSManagedValue_SignatureStrings[] = {
    "4:PySide6.QtQml.QJSManagedValue(self)",
    "3:PySide6.QtQml.QJSManagedValue(self,value:typing.Union[PySide6.QtQml.QJSValue, PySide6.QtQml.QJSValue.SpecialValue, bool, QString, char*, double, int, uint],engine:PySide6.QtQml.QJSEngine)",
    "2:PySide6.QtQml.QJSManagedValue(self,value:typing.Union[PySide6.QtQml.QJSPrimitiveValue, QString, bool, double, int],engine:PySide6.QtQml.QJSEngine)",
    "1:PySide6.QtQml.QJSManagedValue(self,string:QString,engine:PySide6.QtQml.QJSEngine)",
    "0:PySide6.QtQml.QJSManagedValue(self,variant:QVariant,engine:PySide6.QtQml.QJSEngine)",
    "PySide6.QtQml.QJSManagedValue.call(self,arguments:QList[PySide6.QtQml.QJSValue]={})->PySide6.QtQml.QJSValue",
    "PySide6.QtQml.QJSManagedValue.callAsConstructor(self,arguments:QList[PySide6.QtQml.QJSValue]={})->PySide6.QtQml.QJSValue",
    "PySide6.QtQml.QJSManagedValue.callWithInstance(self,instance:typing.Union[PySide6.QtQml.QJSValue, PySide6.QtQml.QJSValue.SpecialValue, bool, QString, char*, double, int, uint],arguments:QList[PySide6.QtQml.QJSValue]={})->PySide6.QtQml.QJSValue",
    "1:PySide6.QtQml.QJSManagedValue.deleteProperty(self,name:QString)->bool",
    "0:PySide6.QtQml.QJSManagedValue.deleteProperty(self,arrayIndex:quint32)->bool",
    "PySide6.QtQml.QJSManagedValue.engine(self)->PySide6.QtQml.QJSEngine",
    "PySide6.QtQml.QJSManagedValue.equals(self,other:PySide6.QtQml.QJSManagedValue)->bool",
    "1:PySide6.QtQml.QJSManagedValue.hasOwnProperty(self,name:QString)->bool",
    "0:PySide6.QtQml.QJSManagedValue.hasOwnProperty(self,arrayIndex:quint32)->bool",
    "1:PySide6.QtQml.QJSManagedValue.hasProperty(self,name:QString)->bool",
    "0:PySide6.QtQml.QJSManagedValue.hasProperty(self,arrayIndex:quint32)->bool",
    "PySide6.QtQml.QJSManagedValue.isArray(self)->bool",
    "PySide6.QtQml.QJSManagedValue.isBoolean(self)->bool",
    "PySide6.QtQml.QJSManagedValue.isDate(self)->bool",
    "PySide6.QtQml.QJSManagedValue.isError(self)->bool",
    "PySide6.QtQml.QJSManagedValue.isFunction(self)->bool",
    "PySide6.QtQml.QJSManagedValue.isInteger(self)->bool",
    "PySide6.QtQml.QJSManagedValue.isJsMetaType(self)->bool",
    "PySide6.QtQml.QJSManagedValue.isNull(self)->bool",
    "PySide6.QtQml.QJSManagedValue.isNumber(self)->bool",
    "PySide6.QtQml.QJSManagedValue.isObject(self)->bool",
    "PySide6.QtQml.QJSManagedValue.isQMetaObject(self)->bool",
    "PySide6.QtQml.QJSManagedValue.isQObject(self)->bool",
    "PySide6.QtQml.QJSManagedValue.isRegularExpression(self)->bool",
    "PySide6.QtQml.QJSManagedValue.isString(self)->bool",
    "PySide6.QtQml.QJSManagedValue.isSymbol(self)->bool",
    "PySide6.QtQml.QJSManagedValue.isUndefined(self)->bool",
    "PySide6.QtQml.QJSManagedValue.isUrl(self)->bool",
    "PySide6.QtQml.QJSManagedValue.isVariant(self)->bool",
    "PySide6.QtQml.QJSManagedValue.jsMetaInstantiate(self,values:QList[PySide6.QtQml.QJSValue]={})->PySide6.QtQml.QJSManagedValue",
    "PySide6.QtQml.QJSManagedValue.jsMetaMembers(self)->QStringList",
    "PySide6.QtQml.QJSManagedValue.jsMetaType(self)->PySide6.QtQml.QJSManagedValue",
    "1:PySide6.QtQml.QJSManagedValue.property(self,name:QString)->PySide6.QtQml.QJSValue",
    "0:PySide6.QtQml.QJSManagedValue.property(self,arrayIndex:quint32)->PySide6.QtQml.QJSValue",
    "PySide6.QtQml.QJSManagedValue.prototype(self)->PySide6.QtQml.QJSManagedValue",
    "1:PySide6.QtQml.QJSManagedValue.setProperty(self,name:QString,value:typing.Union[PySide6.QtQml.QJSValue, PySide6.QtQml.QJSValue.SpecialValue, bool, QString, char*, double, int, uint])",
    "0:PySide6.QtQml.QJSManagedValue.setProperty(self,arrayIndex:quint32,value:typing.Union[PySide6.QtQml.QJSValue, PySide6.QtQml.QJSValue.SpecialValue, bool, QString, char*, double, int, uint])",
    "PySide6.QtQml.QJSManagedValue.setPrototype(self,prototype:PySide6.QtQml.QJSManagedValue)",
    "PySide6.QtQml.QJSManagedValue.strictlyEquals(self,other:PySide6.QtQml.QJSManagedValue)->bool",
    "PySide6.QtQml.QJSManagedValue.toBoolean(self)->bool",
    "PySide6.QtQml.QJSManagedValue.toDateTime(self)->PySide6.QtCore.QDateTime",
    "PySide6.QtQml.QJSManagedValue.toInteger(self)->int",
    "PySide6.QtQml.QJSManagedValue.toJSValue(self)->PySide6.QtQml.QJSValue",
    "PySide6.QtQml.QJSManagedValue.toNumber(self)->double",
    "PySide6.QtQml.QJSManagedValue.toPrimitive(self)->PySide6.QtQml.QJSPrimitiveValue",
    "PySide6.QtQml.QJSManagedValue.toQMetaObject(self)->PySide6.QtCore.QMetaObject",
    "PySide6.QtQml.QJSManagedValue.toQObject(self)->PySide6.QtCore.QObject",
    "PySide6.QtQml.QJSManagedValue.toRegularExpression(self)->PySide6.QtCore.QRegularExpression",
    "PySide6.QtQml.QJSManagedValue.toString(self)->QString",
    "PySide6.QtQml.QJSManagedValue.toUrl(self)->PySide6.QtCore.QUrl",
    "PySide6.QtQml.QJSManagedValue.toVariant(self)->QVariant",
    "PySide6.QtQml.QJSManagedValue.type(self)->PySide6.QtQml.QJSManagedValue.Type",
    nullptr}; // Sentinel

void init_QJSManagedValue(PyObject *module)
{
    _Sbk_QJSManagedValue_Type = Shiboken::ObjectType::introduceWrapperType(
        module,
        "QJSManagedValue",
        "QJSManagedValue*",
        &Sbk_QJSManagedValue_spec,
        &Shiboken::callCppDestructor< ::QJSManagedValue >,
        0,
        0,
        0);
    auto *pyType = Sbk_QJSManagedValue_TypeF(); // references _Sbk_QJSManagedValue_Type
    InitSignatureStrings(pyType, QJSManagedValue_SignatureStrings);
    SbkObjectType_SetPropertyStrings(reinterpret_cast<PyTypeObject *>(_Sbk_QJSManagedValue_Type), Sbk_QJSManagedValue_PropertyStrings);
    SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_IDX]
        = Sbk_QJSManagedValue_TypeF();

    // Register Converter
    SbkConverter *converter = Shiboken::Conversions::createConverter(Sbk_QJSManagedValue_TypeF(),
        QJSManagedValue_PythonToCpp_QJSManagedValue_PTR,
        is_QJSManagedValue_PythonToCpp_QJSManagedValue_PTR_Convertible,
        QJSManagedValue_PTR_CppToPython_QJSManagedValue);

    Shiboken::Conversions::registerConverterName(converter, "QJSManagedValue");
    Shiboken::Conversions::registerConverterName(converter, "QJSManagedValue*");
    Shiboken::Conversions::registerConverterName(converter, "QJSManagedValue&");
    Shiboken::Conversions::registerConverterName(converter, typeid(::QJSManagedValue).name());


    // Initialization of enums.

    // Initialization of enum 'Type'.
    SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_TYPE_IDX] = Shiboken::Enum::createScopedEnum(Sbk_QJSManagedValue_TypeF(),
        "Type",
        "2:PySide6.QtQml.QJSManagedValue.Type",
        "QJSManagedValue::Type");
    if (!SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_TYPE_IDX])
        return;

    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_TYPE_IDX],
        Sbk_QJSManagedValue_TypeF(), "Undefined", (long) QJSManagedValue::Type::Undefined))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_TYPE_IDX],
        Sbk_QJSManagedValue_TypeF(), "Boolean", (long) QJSManagedValue::Type::Boolean))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_TYPE_IDX],
        Sbk_QJSManagedValue_TypeF(), "Number", (long) QJSManagedValue::Type::Number))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_TYPE_IDX],
        Sbk_QJSManagedValue_TypeF(), "String", (long) QJSManagedValue::Type::String))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_TYPE_IDX],
        Sbk_QJSManagedValue_TypeF(), "Object", (long) QJSManagedValue::Type::Object))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_TYPE_IDX],
        Sbk_QJSManagedValue_TypeF(), "Symbol", (long) QJSManagedValue::Type::Symbol))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_TYPE_IDX],
        Sbk_QJSManagedValue_TypeF(), "Function", (long) QJSManagedValue::Type::Function))
        return;
    // Register converter for enum 'QJSManagedValue::Type'.
    {
        SbkConverter *converter = Shiboken::Conversions::createConverter(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_TYPE_IDX],
            QJSManagedValue_Type_CppToPython_QJSManagedValue_Type);
        Shiboken::Conversions::addPythonToCppValueConversion(converter,
            QJSManagedValue_Type_PythonToCpp_QJSManagedValue_Type,
            is_QJSManagedValue_Type_PythonToCpp_QJSManagedValue_Type_Convertible);
        Shiboken::Enum::setTypeConverter(SbkPySide6_QtQmlTypes[SBK_QJSMANAGEDVALUE_TYPE_IDX], converter, false);
        Shiboken::Conversions::registerConverterName(converter, "QJSManagedValue::Type");
        Shiboken::Conversions::registerConverterName(converter, "Type");
    }
    // End of 'Type' enum.

    qRegisterMetaType< ::QJSManagedValue::Type >("QJSManagedValue::Type");
}
