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
QtAndroidQuickViewEmbedding Namespace Reference

Classes

class  SignalHelper
 

Functions

void createQuickView (JNIEnv *, jobject nativeWindow, jstring qmlUri, jint width, jint height, jlong parentWindowReference, QtJniTypes::StringArray qmlImportPaths)
 
void setRootObjectProperty (JNIEnv *env, jobject object, jlong windowReference, jstring propertyName, jobject value)
 
jobject getRootObjectProperty (JNIEnv *env, jobject object, jlong windowReference, jstring propertyName)
 
int addRootObjectSignalListener (JNIEnv *env, jobject, jlong windowReference, jstring signalName, jclass argType, jobject listener)
 
bool removeRootObjectSignalListener (JNIEnv *, jobject, jlong windowReference, jint signalListenerId)
 
bool registerNatives (QJniEnvironment &env)
 

Function Documentation

◆ addRootObjectSignalListener()

int QtAndroidQuickViewEmbedding::addRootObjectSignalListener ( JNIEnv * env,
jobject ,
jlong windowReference,
jstring signalName,
jclass argType,
jobject listener )

Definition at line 171 of file qandroidquickviewembedding.cpp.

References arg, QObject::connect(), connection, QByteArray::constData(), QObject::findChild(), i, QByteArray::indexOf(), QByteArray::insert(), QtAndroidQuickViewEmbedding::SignalHelper::ListenerInfo::listener, metaObject(), QMetaProperty::name(), QMetaType::name(), QMetaObject::normalizedSignature(), QMetaProperty::notifySignal(), Q_ASSERT, qPrintable, QStringLiteral, qWarning, QByteArray::replace(), QQuickView::rootObject(), signalIndex, and view.

Referenced by registerNatives().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createQuickView()

void QtAndroidQuickViewEmbedding::createQuickView ( JNIEnv * ,
jobject nativeWindow,
jstring qmlUri,
jint width,
jint height,
jlong parentWindowReference,
QtJniTypes::StringArray qmlImportPaths )

Definition at line 31 of file qandroidquickviewembedding.cpp.

References QObject::connect(), engine, QQuickView::engine(), i, QMetaObject::invokeMethod(), nativeWindow(), qApp, QWindow::setHeight(), QQuickView::setResizeMode(), QQuickView::setSource(), QWindow::setWidth(), QQuickView::SizeRootObjectToView, QQuickView::statusChanged(), toString(), Qt::transparent, view, and window().

Referenced by registerNatives().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getRootObjectProperty()

jobject QtAndroidQuickViewEmbedding::getRootObjectProperty ( JNIEnv * env,
jobject object,
jlong windowReference,
jstring propertyName )

Definition at line 114 of file qandroidquickviewembedding.cpp.

References property, Q_ASSERT, Q_UNUSED, qPrintable, qWarning, QMetaProperty::read(), QQuickView::rootObject(), QQuickView::source, QUrl::toString(), QVariant::typeId(), and view.

Referenced by registerNatives().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ registerNatives()

bool QtAndroidQuickViewEmbedding::registerNatives ( QJniEnvironment & env)

Definition at line 406 of file qandroidquickviewembedding.cpp.

References addRootObjectSignalListener(), createQuickView(), getRootObjectProperty(), removeRootObjectSignalListener(), and setRootObjectProperty().

Referenced by JNI_OnLoad().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ removeRootObjectSignalListener()

bool QtAndroidQuickViewEmbedding::removeRootObjectSignalListener ( JNIEnv * ,
jobject ,
jlong windowReference,
jint signalListenerId )

Definition at line 287 of file qandroidquickviewembedding.cpp.

References QObject::disconnect(), QByteArray::erase(), QObject::findChild(), qWarning, QQuickView::rootObject(), and view.

Referenced by registerNatives().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setRootObjectProperty()

void QtAndroidQuickViewEmbedding::setRootObjectProperty ( JNIEnv * env,
jobject object,
jlong windowReference,
jstring propertyName,
jobject value )

Definition at line 76 of file qandroidquickviewembedding.cpp.

References property, Q_UNUSED, qPrintable, qWarning, and QMetaProperty::write().

Referenced by registerNatives().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: