|
| | ~QQmlEnginePrivate () override |
| void | init () |
| | Q_OBJECT_BINDABLE_PROPERTY (QQmlEnginePrivate, QString, translationLanguage) |
| QSharedPointer< QQmlImageProviderBase > | imageProvider (const QString &providerId) const |
| void | referenceScarceResources () |
| void | dereferenceScarceResources () |
| void | incubate (QQmlIncubator &, const QQmlRefPointer< QQmlContextData > &) |
| QString | offlineStorageDatabaseDirectory () const |
| template<typename T> |
| T | singletonInstance (const QQmlType &typetype) |
| void | sendQuit () |
| void | sendExit (int retCode=0) |
| void | warning (const QQmlError &) |
| void | warning (const QList< QQmlError > &) |
| QQmlGadgetPtrWrapper * | valueTypeInstance (QMetaType typetype) |
| void | executeRuntimeFunction (const QUrl &url, qsizetype functionIndex, QObject *thisObject, int argc=0, void **args=nullptr, QMetaType *typestypes=nullptr) |
| void | executeRuntimeFunction (const QV4::ExecutableCompilationUnit *unit, qsizetype functionIndex, QObject *thisObject, int argc=0, void **args=nullptr, QMetaType *typestypes=nullptr) |
| QV4::ExecutableCompilationUnit * | compilationUnitFromUrl (const QUrl &url) |
| QQmlRefPointer< QQmlContextData > | createBareContext (const QQmlRefPointer< QV4::ExecutableCompilationUnit > &unit, const QQmlRefPointer< QQmlContextData > &parentContext, int subComponentIndex) |
| QQmlRefPointer< QQmlContextData > | createComponentRootContext (const QQmlRefPointer< QV4::ExecutableCompilationUnit > &unit, const QQmlRefPointer< QQmlContextData > &parentContex, int subComponentIndex) |
| template<> |
| Q_QML_EXPORT QJSValue | singletonInstance (const QQmlType &typetype) |
| template<> |
| QJSValue | singletonInstance (const QQmlType &typetype) |
| template<> |
| QJSValue | singletonInstance (const QQmlType &typetype) |
| | QJSEnginePrivate ()=default |
| | ~QJSEnginePrivate () override |
| void | uiLanguageChanged () |
| | Q_OBJECT_BINDABLE_PROPERTY (QJSEnginePrivate, QString, uiLanguage, &QJSEnginePrivate::uiLanguageChanged) |
| void | ensureExtraData () |
| void | setObjectNameWithoutBindings (const QString &namename) |
| | QObjectPrivate (decltype(QObjectPrivateVersion) version=QObjectPrivateVersion) |
| virtual | ~QObjectPrivate () |
| void | deleteChildren () |
| void | clearBindingStorage () |
| void | setParent_helper (QObject *) |
| void | moveToThread_helper () |
| void | setThreadData_helper (QThreadData *currentData, QThreadData *targetData, QBindingStatus *status) |
| QObjectList | receiverList (const char *signal) const |
| void | ensureConnectionData () |
| void | addConnection (int signal, Connection *cc) |
| int | signalIndex (const char *signalName, const QMetaObject **meta=nullptr) const |
| bool | isSignalConnected (uint signalIdx, bool checkDeclarative=true) const |
| bool | maybeSignalConnected (uint signalIndex) const |
| bool | isDeclarativeSignalConnected (uint signalIdx) const |
| void | connectNotify (const QMetaMethod &signal) |
| void | disconnectNotify (const QMetaMethod &signal) |
| void | reinitBindingStorageAfterThreadMove () |
| virtual std::string | flagsForDumping () const |
| virtual void | writeToDebugStream (QDebug &) const |
| QtPrivate::QPropertyAdaptorSlotObject * | getPropertyAdaptorSlotObject (const QMetaProperty &property) |
| | QObjectData ()=default |
| virtual | ~QObjectData ()=0 |
| const QMetaObject * | dynamicMetaObject () const |
|
| static void | warning (QQmlEngine *, const QQmlError &) |
| static void | warning (QQmlEngine *, const QList< QQmlError > &) |
| static void | warning (QQmlEnginePrivate *, const QQmlError &) |
| static void | warning (QQmlEnginePrivate *, const QList< QQmlError > &) |
| static QQmlEnginePrivate * | get (QQmlEngine *e) |
| static const QQmlEnginePrivate * | get (const QQmlEngine *e) |
| static QQmlEngine * | get (QQmlEnginePrivate *pp) |
| static const QQmlEngine * | get (const QQmlEnginePrivate *pp) |
| static QQmlEnginePrivate * | get (QV4::ExecutionEngine *e) |
| static QQmlEnginePrivate * | get (QQmlContext *cc) |
| static QQmlEnginePrivate * | get (const QQmlRefPointer< QQmlContextData > &cc) |
| static QList< QQmlError > | qmlErrorFromDiagnostics (const QString &fileName, const QList< QQmlJS::DiagnosticMessage > &diagnosticMessages) |
| static bool | designerMode () |
| static void | activateDesignerMode () |
| static void | setInternalContext (QObject *This, const QQmlRefPointer< QQmlContextData > &context, QQmlContextData::QmlObjectKind kind) |
| static QJSEnginePrivate * | get (QJSEngine *e) |
| static const QJSEnginePrivate * | get (const QJSEngine *e) |
| static QJSEngine * | get (QJSEnginePrivate *e) |
| static const QJSEngine * | get (const QJSEnginePrivate *e) |
| static QJSEnginePrivate * | get (QV4::ExecutionEngine *e) |
| static void | addToDebugServer (QJSEngine *qq) |
| static void | removeFromDebugServer (QJSEngine *qq) |
| static bool | removeConnection (Connection *cc) |
| static QObjectPrivate * | get (QObject *o) |
| static const QObjectPrivate * | get (const QObject *o) |
| static void | deleteInOwnThread (QObject *objectobject) |
| template<typename Func1, typename Func2> |
| static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType typetype=Qt::AutoConnection) |
| template<typename Func1, typename Func2> |
| static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot) |
| static QMetaObject::Connection | connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int typetype, const int *typestypes, const QMetaObject *senderMetaObject) |
| static QMetaObject::Connection | connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType typetype) |
| static QMetaObject::Connection | connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType typetype) |
| static bool | disconnect (const QObject *sender, int signal_index, void **slot) |
| static bool | disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot) |
Definition at line 100 of file qqmlengine_p.h.
| Q_CONSTINIT std::atomic< bool > QQmlEnginePrivate::qml_debugging_enabled {false} |
|
static |
\qmltype QtObject \nativetype QObject \inqmlmodule QtQml
A basic QML type.
The QtObject type is a non-visual element which contains only the objectName property.
It can be useful to create a QtObject if you need an extremely lightweight type to enclose a set of custom properties:
import QtQuick
Item {
QtObject {
id: attributes
property string name
property int size
property variant attributes
}
Text { text: attributes.name }
}
It can also be useful for C++ integration, as it is just a plain QObject. See the QObject documentation for further details.
\qmlproperty string QtObject::objectName This property holds the QObject::objectName for this specific object instance.
This allows a C++ application to locate an item within a QML component using the QObject::findChild() method. For example, the following C++ application locates the child \l Rectangle item and dynamically changes its color value:
\qml MyRect.qml
import QtQuick 2.0
Item {
width: 200; height: 200
Rectangle {
anchors.fill: parent
color: "red"
objectName: "myRect"
}
}
\endqml
\code
// main.cpp
QQuickView view;
view.setSource(QUrl::fromLocalFile("MyRect.qml"));
view.show();
QQuickItem *item = view.rootObject()->findChild<QQuickItem*>("myRect");
if (item)
item->setProperty("color", QColor(Qt::yellow));
\endcode
Definition at line 115 of file qqmlengine_p.h.