![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qqmlglobal_p.h>
Static Public Member Functions | |
| static bool | populateValueType (QMetaType targetMetaType, void *target, const QV4::Value &source, QV4::ExecutionEngine *engine) |
| static bool | populateValueType (QMetaType targetMetaType, void *target, QMetaType sourceMetaType, void *source, QV4::ExecutionEngine *engine) |
| static Q_QML_EXPORT void * | heapCreateValueType (const QQmlType &targetType, const QV4::Value &source, QV4::ExecutionEngine *engine) |
| static QVariant | constructValueType (QMetaType targetMetaType, const QMetaObject *targetMetaObject, int ctorIndex, void **args) |
| static QVariant | createValueType (const QJSValue &, QMetaType) |
| static QVariant | createValueType (const QString &, QMetaType) |
| static QVariant | createValueType (const QV4::Value &, QMetaType, QV4::ExecutionEngine *) |
| static QVariant Q_AUTOTEST_EXPORT | createValueType (const QVariant &, QMetaType, QV4::ExecutionEngine *) |
Definition at line 187 of file qqmlglobal_p.h.
|
static |
Definition at line 798 of file qqmlglobal.cpp.
Definition at line 819 of file qqmlglobal.cpp.
Definition at line 826 of file qqmlglobal.cpp.
|
static |
Definition at line 842 of file qqmlglobal.cpp.
|
static |
This should only be called with either builtin types or wrapped QJSValues as source.
Definition at line 888 of file qqmlglobal.cpp.
|
static |
Specialization that constructs the value type on the heap using new and returns a pointer to it.
Definition at line 776 of file qqmlglobal.cpp.
|
static |
Populate the value type in place at target, which is expected to be allocated and default-constructed, for example the result of a QVariant(QMetaType). This is efficient if we can do byProperties() since it can use the pre-constructed object. It also avoids the creation of a QVariant in most cases. It is not efficient if you're going to create a QVariant anyway.
Definition at line 756 of file qqmlglobal.cpp.
|
static |
Populate the value type in place at target, which is expected to be allocated and default-constructed, for example the result of a QVariant(QMetaType). This is efficient if we can do byProperties() since it can use the pre-constructed object. It also avoids the creation of a QVariant in most cases. It is not efficient if you're going to create a QVariant anyway.
Definition at line 719 of file qqmlglobal.cpp.