![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
\inmodule QtQml More...
#include <qqmlinfo.h>
Public Member Functions | |
QQmlInfo (const QQmlInfo &) | |
~QQmlInfo () | |
QQmlInfo & | operator<< (QChar t) |
QQmlInfo & | operator<< (bool t) |
QQmlInfo & | operator<< (char t) |
QQmlInfo & | operator<< (signed short t) |
QQmlInfo & | operator<< (unsigned short t) |
QQmlInfo & | operator<< (signed int t) |
QQmlInfo & | operator<< (unsigned int t) |
QQmlInfo & | operator<< (signed long t) |
QQmlInfo & | operator<< (unsigned long t) |
QQmlInfo & | operator<< (qint64 t) |
QQmlInfo & | operator<< (quint64 t) |
QQmlInfo & | operator<< (float t) |
QQmlInfo & | operator<< (double t) |
QQmlInfo & | operator<< (const char *t) |
QQmlInfo & | operator<< (const QString &t) |
QQmlInfo & | operator<< (QStringView t) |
QQmlInfo & | operator<< (const QLatin1String &t) |
QQmlInfo & | operator<< (const QByteArray &t) |
QQmlInfo & | operator<< (const void *t) |
QQmlInfo & | operator<< (QTextStreamFunction f) |
QQmlInfo & | operator<< (QTextStreamManipulator m) |
QQmlInfo & | operator<< (const QUrl &t) |
Friends | |
Q_QML_EXPORT QQmlInfo | qmlDebug (const QObject *me) |
Q_QML_EXPORT QQmlInfo | qmlDebug (const QObject *me, const QQmlError &error) |
Q_QML_EXPORT QQmlInfo | qmlDebug (const QObject *me, const QList< QQmlError > &errors) |
Q_QML_EXPORT QQmlInfo | qmlInfo (const QObject *me) |
Prints informational messages that include the file and line number for the specified QML object. | |
Q_QML_EXPORT QQmlInfo | qmlInfo (const QObject *me, const QQmlError &error) |
Q_QML_EXPORT QQmlInfo | qmlInfo (const QObject *me, const QList< QQmlError > &errors) |
Q_QML_EXPORT QQmlInfo | qmlWarning (const QObject *me) |
Q_QML_EXPORT QQmlInfo | qmlWarning (const QObject *me, const QQmlError &error) |
Q_QML_EXPORT QQmlInfo | qmlWarning (const QObject *me, const QList< QQmlError > &errors) |
Additional Inherited Members | |
![]() | |
template< class T > QDebug | operator<< (QDebug debug, const QList< T > &list) |
Writes the contents of list to debug. | |
template< class T, qsizetype P > QDebug | operator<< (QDebug debug, const QVarLengthArray< T, P > &array) |
template< typename T, typename Alloc > QDebug | operator<< (QDebug debug, const std::list< T, Alloc > &vec) |
template< typename T, typename Alloc > QDebug | operator<< (QDebug debug, const std::vector< T, Alloc > &vec) |
template< typename T, std::size_t N > QDebug | operator<< (QDebug debug, const std::array< T, N > &array) |
template< typename T > QDebug | operator<< (QDebug debug, const QSet< T > &set) |
Writes the contents of set to debug. | |
template< class Key, class T > QDebug | operator<< (QDebug debug, const QMap< Key, T > &map) |
Writes the contents of map to debug. | |
template< class Key, class T > QDebug | operator<< (QDebug debug, const QMultiMap< Key, T > &map) |
Writes the contents of map to debug. | |
template< typename Key, typename T, typename Compare, typename Alloc > QDebug | operator<< (QDebug debug, const std::map< Key, T, Compare, Alloc > &map) |
template< typename Key, typename T, typename Compare, typename Alloc > QDebug | operator<< (QDebug debug, const std::multimap< Key, T, Compare, Alloc > &map) |
template< typename Key, typename Compare, typename Alloc > QDebug | operator<< (QDebug debug, const std::multiset< Key, Compare, Alloc > &multiset) |
template< typename Key, typename Compare, typename Alloc > QDebug | operator<< (QDebug debug, const std::set< Key, Compare, Alloc > &set) |
template< typename Key, typename T, typename Hash, typename KeyEqual, typename Alloc > QDebug | operator<< (QDebug debug, const std::unordered_map< Key, T, Hash, KeyEqual, Alloc > &map) |
template< typename Key, typename Hash, typename KeyEqual, typename Alloc > QDebug | operator<< (QDebug debug, const std::unordered_set< Key, Hash, KeyEqual, Alloc > &unordered_set) |
template< class Key, class T > QDebug | operator<< (QDebug debug, const QHash< Key, T > &hash) |
Writes the contents of hash to debug. | |
template< class Key, class T > QDebug | operator<< (QDebug debug, const QMultiHash< Key, T > &hash) |
Writes the contents of hash to debug. | |
template< class T1, class T2 > QDebug | operator<< (QDebug debug, const std::pair< T1, T2 > &pair) |
Writes the contents of pair to debug. | |
template< typename T > QDebug | operator<< (QDebug debug, const QContiguousCache< T > &cache) |
Writes the contents of cache to debug. | |
template< typename T > QDebug | operator<< (QDebug debug, const QFlags< T > &flags) |
operator<< (QDebug d, QAnyStringView s) | |
\inmodule QtQml
The QQmlInfo class allows logging of QML-related messages.
QQmlInfo is an opaque handle for QML-related diagnostic messages. You can use the {<<} operator to add content to the message. When the QQmlInfo object is destroyed, it prints the resulting message along with information on the context.
Definition at line 29 of file qqmlinfo.h.
QQmlInfo::QQmlInfo | ( | const QQmlInfo & | other | ) |
Definition at line 167 of file qqmlinfo.cpp.
QQmlInfo::~QQmlInfo | ( | ) |
Definition at line 173 of file qqmlinfo.cpp.
|
inline |
Definition at line 36 of file qqmlinfo.h.
|
inline |
Definition at line 37 of file qqmlinfo.h.
|
inline |
Definition at line 48 of file qqmlinfo.h.
|
inline |
Definition at line 52 of file qqmlinfo.h.
|
inline |
Definition at line 51 of file qqmlinfo.h.
Definition at line 49 of file qqmlinfo.h.
Definition at line 57 of file qqmlinfo.h.
Definition at line 53 of file qqmlinfo.h.
|
inline |
Definition at line 47 of file qqmlinfo.h.
|
inline |
Definition at line 46 of file qqmlinfo.h.
Definition at line 35 of file qqmlinfo.h.
Definition at line 44 of file qqmlinfo.h.
|
inline |
Definition at line 50 of file qqmlinfo.h.
|
inline |
Definition at line 54 of file qqmlinfo.h.
|
inline |
Definition at line 55 of file qqmlinfo.h.
Definition at line 45 of file qqmlinfo.h.
|
inline |
Definition at line 40 of file qqmlinfo.h.
|
inline |
Definition at line 42 of file qqmlinfo.h.
|
inline |
Definition at line 38 of file qqmlinfo.h.
|
inline |
Definition at line 41 of file qqmlinfo.h.
|
inline |
Definition at line 43 of file qqmlinfo.h.
|
inline |
Definition at line 39 of file qqmlinfo.h.
Prints informational messages that include the file and line number for the specified QML object.
\fn QQmlInfo qmlDebug(const QObject *object) \relates QQmlInfo \since 5.9 Prints debug messages that include the file and line number for the specified QML \a object.
! [qqmlinfo-desc] When QML types produce logging messages, it improves traceability if they include the QML file and line number on which the particular instance was instantiated.
To include the file and line number, an object must be passed. If the file and line number is not available for that instance (either it was not instantiated by the QML engine or location information is disabled), "unknown location" will be used instead. ! [qqmlinfo-desc]
For example, \code qmlDebug(object) << "Internal state: 42"; \endcode prints \badcode QML MyCustomType (unknown location): Internal state: 42 \endcode \sa qmlInfo, qmlWarning
qqmlinfo-desc
For example,
prints
\badcode QML MyCustomType (unknown location): component property is a write-once property