![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <private/qmetaobject_p.h>
#include <private/qqmlmetaobject_p.h>
#include <private/qqmltype_p.h>
#include <private/qtqmlglobal_p.h>
#include <QtQml/qqml.h>
#include <QtCore/qobject.h>
Go to the source code of this file.
Classes | |
class | QQmlValueTypeProvider |
class | QQmlColorProvider |
class | QQmlGuiProvider |
class | QQmlApplication |
class | QQmlApplicationPrivate |
struct | QQmlSourceLocation |
Macros | |
#define | DEFINE_BOOL_CONFIG_OPTION(name, var) |
#define | qmlobject_connect(Sender, SenderType, Signal, Receiver, ReceiverType, Method) |
Connect Signal of Sender to Method of Receiver. | |
#define | qmlobject_disconnect(Sender, SenderType, Signal, Receiver, ReceiverType, Method) |
Disconnect Signal of Sender from Method of Receiver. | |
#define | IS_SIGNAL_CONNECTED(Sender, SenderType, Name, Arguments) |
Functions | |
QT_BEGIN_NAMESPACE bool | qmlConvertBoolConfigOption (const char *v) |
template<typename T, T(*)(const char *) Convert> | |
T | qmlGetConfigOption (const char *var) |
Q_QML_EXPORT bool | qmlobject_can_cpp_cast (QObject *object, const QMetaObject *mo) |
Q_QML_EXPORT bool | qmlobject_can_qml_cast (QObject *object, const QQmlType &type) |
template<class T> | |
T | qmlobject_cast (QObject *object) |
This method is identical to qobject_cast<T>() except that it does not require lazy QMetaObjects to be built, so should be preferred in all QML code that might interact with QML built objects. | |
template<> | |
QQuickItem * | qmlobject_cast< QQuickItem * > (QObject *object) |
void | QQml_setParent_noEvent (QObject *object, QObject *parent) |
Makes the object a child of parent. | |
Q_QML_EXPORT QQmlColorProvider * | QQml_setColorProvider (QQmlColorProvider *) |
Q_QML_EXPORT QQmlColorProvider * | QQml_colorProvider () |
Q_QML_EXPORT QQmlGuiProvider * | QQml_setGuiProvider (QQmlGuiProvider *) |
Q_AUTOTEST_EXPORT QQmlGuiProvider * | QQml_guiProvider () |
#define DEFINE_BOOL_CONFIG_OPTION | ( | name, | |
var ) |
Definition at line 41 of file qqmlglobal_p.h.
#define IS_SIGNAL_CONNECTED | ( | Sender, | |
SenderType, | |||
Name, | |||
Arguments ) |
Definition at line 163 of file qqmlglobal_p.h.
#define qmlobject_connect | ( | Sender, | |
SenderType, | |||
Signal, | |||
Receiver, | |||
ReceiverType, | |||
Method ) |
Connect Signal of Sender to Method of Receiver.
Signal must be of type SenderType and Receiver of type ReceiverType.
Unlike QObject::connect(), this macro caches the lookup of the signal and method indexes. It also does not require lazy QMetaObjects to be built so should be preferred in all QML code that might interact with QML built objects.
Definition at line 63 of file qqmlglobal_p.h.
#define qmlobject_disconnect | ( | Sender, | |
SenderType, | |||
Signal, | |||
Receiver, | |||
ReceiverType, | |||
Method ) |
Disconnect Signal of Sender from Method of Receiver.
Signal must be of type SenderType and Receiver of type ReceiverType.
Unlike QObject::disconnect(), this macro caches the lookup of the signal and method indexes. It also does not require lazy QMetaObjects to be built so should be preferred in all QML code that might interact with QML built objects.
Definition at line 102 of file qqmlglobal_p.h.
|
inline |
Definition at line 28 of file qqmlglobal_p.h.
T qmlGetConfigOption | ( | const char * | var | ) |
Definition at line 34 of file qqmlglobal_p.h.
bool qmlobject_can_cpp_cast | ( | QObject * | object, |
const QMetaObject * | mo ) |
Definition at line 1099 of file qqmlglobal.cpp.
Definition at line 1107 of file qqmlglobal.cpp.
T qmlobject_cast | ( | QObject * | object | ) |
This method is identical to qobject_cast<T>() except that it does not require lazy QMetaObjects to be built, so should be preferred in all QML code that might interact with QML built objects.
Definition at line 142 of file qqmlglobal_p.h.
|
inline |
Definition at line 154 of file qqmlglobal_p.h.
Q_AUTOTEST_EXPORT QQmlColorProvider * QQml_colorProvider | ( | void | ) |
Definition at line 962 of file qqmlglobal.cpp.
Q_AUTOTEST_EXPORT QQmlGuiProvider * QQml_guiProvider | ( | void | ) |
Definition at line 1015 of file qqmlglobal.cpp.
Q_QML_EXPORT QQmlColorProvider * QQml_setColorProvider | ( | QQmlColorProvider * | newProvider | ) |
Definition at line 944 of file qqmlglobal.cpp.
Q_QML_EXPORT QQmlGuiProvider * QQml_setGuiProvider | ( | QQmlGuiProvider * | newProvider | ) |
Definition at line 998 of file qqmlglobal.cpp.
Makes the object a child of parent.
Note that when using this method, neither parent nor the object's previous parent (if it had one) will receive ChildRemoved or ChildAdded events.
Definition at line 177 of file qqmlglobal_p.h.