![]() |
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>.
|
Public Member Functions | |
void | setStatusChangeListener (QtQmlStatusChangeListener listener) |
boolean | disconnectSignalListener (int signalListenerId) |
Protected Member Functions | |
abstract String | getLibraryName () |
abstract String | getModuleName () |
abstract String | getFilePath () |
QtQuickView | getQuickView () |
boolean | isViewAttached () |
void | attachView (QtQuickView view) |
void | detachView () |
HashMap< String, Object > | attributes () |
void | setProperty (String propertyName, Object value) |
@Since 6.8
The QtQmlComponent represents a QML component that can be loaded by a QtQuickView instance This abstract class should be extended to be used by a QtQuickView. It provides QtQuickView with essential information to load the QML component it represents. It also offers convenient methods for seamless interaction with the QtQuickView that loads it.
Definition at line 19 of file QtQmlComponent.java.
|
inlineprotected |
Attaches this to a QtQuickView instance.
Definition at line 76 of file QtQmlComponent.java.
References view.
|
inlineprotected |
Implement this to return more information about the QML Component. Default implementation returns an empty HashMap.
Definition at line 105 of file QtQmlComponent.java.
|
inlineprotected |
Detaches this from the QtQuickView to which it has previously been attached. A call to this method will disconnect all signal listeners that have been connected before.
Definition at line 87 of file QtQmlComponent.java.
References org.qtproject.qt.android.QtQmlComponent.getQuickView(), org.qtproject.qt.android.QtQmlStatus.NULL, org.qtproject.qt.android.QtQmlStatusChangeListener.onStatusChanged(), and view.
|
inline |
Disconnects a SignalListener with a given id obtained from connectSignalListener
call, from listening to a signal.
signalListenerId | the connection id |
Definition at line 194 of file QtQmlComponent.java.
References org.qtproject.qt.android.QtQmlComponent.getQuickView(), TAG, and view.
|
abstractprotected |
Implement this to return the qrc (Qt Resource) path of this QML component.
|
abstractprotected |
Implement this to return the library name that this component belongs to.
|
abstractprotected |
Implement this to return the module name that this component belongs to.
|
inlineprotected |
Gets the QtQuickView instance that has loaded this component.
Definition at line 59 of file QtQmlComponent.java.
Referenced by org.qtproject.qt.android.QtQmlComponent.detachView(), org.qtproject.qt.android.QtQmlComponent.disconnectSignalListener(), org.qtproject.qt.android.QtQmlComponent.isViewAttached(), org.qtproject.qt.android.QtQmlComponent.setProperty(), and org.qtproject.qt.android.QtQmlComponent.setStatusChangeListener().
|
inlineprotected |
Checks if this is currently attached to a QtQuickView instance
Definition at line 71 of file QtQmlComponent.java.
References org.qtproject.qt.android.QtQmlComponent.getQuickView().
|
inlineprotected |
Sets the value of an existing property on the QML component if it has already been attached and loaded by a QtQuickView instance. The supported types are java.lang.Integer
, java.lang.Double
, java.lang.Float
, java.lang.Boolean
and java.lang.String
. These types get converted to their corresponding QML types int, double/float, bool, and string. This function does not add properties to the QML root object if they do not exist but prints a warning.
propertyName | the name of the existing QML property to set the value of |
value | the value to set the property to QML's int, double/float, bool or string |
Definition at line 123 of file QtQmlComponent.java.
References org.qtproject.qt.android.QtQmlComponent.getQuickView(), QObject.setProperty(), TAG, and view.
|
inline |
Sets a StatusChangeListener to listen to status changes.
listener | an instance of a StatusChangeListener interface |
Definition at line 45 of file QtQmlComponent.java.
References org.qtproject.qt.android.QtQmlComponent.getQuickView(), and view.