![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
Public Member Functions | |
| abstract String | getLibraryName () |
| abstract String | getModuleName () |
| abstract String | getFilePath () |
| void | setStatusChangeListener (QtQmlStatusChangeListener listener) |
| boolean | disconnectSignalListener (int signalListenerId) |
| void | invokeMethod (String name, Object[] params) |
| void | invokeMethod (String name) |
Protected Member Functions | |
| QtQuickView | getQuickView () |
| boolean | isViewAttached () |
| void | attachView (QtQuickView view) |
| void | detachView () |
| HashMap< String, Object > | attributes () |
| void | setProperty (String propertyName, Object value) |
| int | connectSignalListener (String signalName, Class<?>[] argTypes, Object listener) |
The QtQuickViewContent 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 20 of file QtQuickViewContent.java.
|
inlineprotected |
Attaches this to a QtQuickView instance.
Definition at line 78 of file QtQuickViewContent.java.
References view.
|
inlineprotected |
Implement this to return more information about the QML Component. Default implementation returns an empty HashMap.
Definition at line 109 of file QtQuickViewContent.java.
|
inlineprotected |
Connects a SignalListener to a signal of the QML component if it has already been attached and loaded by a QtQuickView instance. Otherwise, the connection is executed once the component is attached to a view.
| signalName | the name of the root object signal |
| argTypes | the Class types of the signal arguments |
| listener | an instance of the QtSignalListener interface |
true if the component is not yet attached to a QtQuickView instance. Definition at line 195 of file QtQuickViewContent.java.
References Class, getQuickView(), isViewAttached(), signalName(), String, and view.
|
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 91 of file QtQuickViewContent.java.
References getQuickView(), org.qtproject.qt.android.QtQmlStatus.NULL, and view.
|
inline |
Disconnects a SignalListener with a given id obtained from QtQuickView#connectSignalListener(String, Class, QtSignalListener) or QtQuickView#connectSignalListener(String, Class[], Object) call, from listening to a signal.
| signalListenerId | the connection id |
Definition at line 218 of file QtQuickViewContent.java.
References getQuickView(), isViewAttached(), and view.
|
abstract |
|
abstract |
Implement this to return the library name that this component belongs to.
References String.
|
abstract |
Implement this to return the module name that this component belongs to.
References String.
|
inlineprotected |
Gets the QtQuickView instance that has loaded this component.
Definition at line 61 of file QtQuickViewContent.java.
Referenced by connectSignalListener(), detachView(), disconnectSignalListener(), invokeMethod(), invokeMethod(), isViewAttached(), setProperty(), and setStatusChangeListener().
Invokes a QML method of the root object.
| name | name of the method |
Definition at line 272 of file QtQuickViewContent.java.
References getQuickView(), Log, String, and view.
|
inline |
Invokes a QML method of the root object.
Supported parameter 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 types: int, double, real, bool, and string, respectively.
| name | name of the method |
| params | array of parameters that are passed to the method |
Definition at line 253 of file QtQuickViewContent.java.
References getQuickView(), Log, String, and view.
|
inlineprotected |
Checks if this is currently attached to a QtQuickView instance
Definition at line 73 of file QtQuickViewContent.java.
References getQuickView().
Referenced by connectSignalListener(), and disconnectSignalListener().
|
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 127 of file QtQuickViewContent.java.
References getQuickView(), Log, String, and view.
|
inline |
Sets a StatusChangeListener to listen to status changes.
| listener | an instance of a StatusChangeListener interface |
Definition at line 47 of file QtQuickViewContent.java.
References getQuickView(), and view.