Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QQmlPrivate::SingletonInstanceFunctor Struct Reference

#include <qqmlprivate.h>

+ Collaboration diagram for QQmlPrivate::SingletonInstanceFunctor:

Public Member Functions

QObjectoperator() (QQmlEngine *, QJSEngine *)
 

Public Attributes

QPointer< QObjectm_object
 
QQmlEnginem_engine = nullptr
 

Detailed Description

Definition at line 792 of file qqmlprivate.h.

Member Function Documentation

◆ operator()()

QObject * QQmlPrivate::SingletonInstanceFunctor::operator() ( QQmlEngine * qeng,
QJSEngine *  )

Definition at line 404 of file qqml.cpp.

References checkSingletonInstance(), QJSEngine::CppOwnership, error, QQmlEnginePrivate::get(), m_engine, m_object, and QJSEngine::setObjectOwnership().

+ Here is the call graph for this function:

Member Data Documentation

◆ m_engine

QQmlEngine* QQmlPrivate::SingletonInstanceFunctor::m_engine = nullptr

Definition at line 801 of file qqmlprivate.h.

Referenced by operator()().

◆ m_object

QPointer<QObject> QQmlPrivate::SingletonInstanceFunctor::m_object

Definition at line 796 of file qqmlprivate.h.

Referenced by operator()(), and qmlRegisterSingletonInstance().


The documentation for this struct was generated from the following files: