![]() |
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) |
bool | QQml_isFileCaseCorrect (const QString &fileName, int length=-1) |
Returns true if the case of fileName is equivalent to the file case of fileName on disk, and false otherwise. | |
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 () |
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 1090 of file qqmlglobal.cpp.
Definition at line 1098 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 953 of file qqmlglobal.cpp.
Q_AUTOTEST_EXPORT QQmlGuiProvider * QQml_guiProvider | ( | void | ) |
Definition at line 1006 of file qqmlglobal.cpp.
bool QQml_isFileCaseCorrect | ( | const QString & | fileName, |
int | length = -1 ) |
Returns true if the case of fileName is equivalent to the file case of fileName on disk, and false otherwise.
This is used to ensure that the behavior of QML on a case-insensitive file system is the same as on a case-sensitive file system. This function performs a "best effort" attempt to determine the real case of the file. It may have false positives (say the case is correct when it isn't), but it should never have a false negative (say the case is incorrect when it is correct).
Length specifies specifies the number of characters to be checked from behind. That is, if a file name results from a relative path specification like "foo/bar.qml" and is made absolute, the original length (11) should be passed indicating that only the last part of the relative path should be checked.
Definition at line 2057 of file qqmlengine.cpp.
Q_QML_EXPORT QQmlColorProvider * QQml_setColorProvider | ( | QQmlColorProvider * | newProvider | ) |
Definition at line 935 of file qqmlglobal.cpp.
Q_QML_EXPORT QQmlGuiProvider * QQml_setGuiProvider | ( | QQmlGuiProvider * | newProvider | ) |
Definition at line 989 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 197 of file qqmlglobal_p.h.