![]() |
Qt 6.x
The Qt SDK
|
#include <QtCore/qsharedpointer.h>
#include <QtCore/qtypeinfo.h>
Go to the source code of this file.
Classes | |
class | QPointer< T > |
\inmodule QtCore More... | |
Macros | |
#define | DECLARE_COMPARE_SET(T1, A1, T2, A2) |
#define | DECLARE_TEMPLATE_COMPARE_SET(T1, A1, T2, A2) |
Functions | |
template<class T > | |
Q_DECLARE_TYPEINFO_BODY (QPointer< T >, Q_RELOCATABLE_TYPE) | |
template<typename T > | |
QPointer< T > | qPointerFromVariant (const QVariant &variant) |
template<class T > | |
void | swap (QPointer< T > &p1, QPointer< T > &p2) noexcept |
#define DECLARE_COMPARE_SET | ( | T1, | |
A1, | |||
T2, | |||
A2 | |||
) |
Definition at line 73 of file qpointer.h.
#define DECLARE_TEMPLATE_COMPARE_SET | ( | T1, | |
A1, | |||
T2, | |||
A2 | |||
) |
Definition at line 79 of file qpointer.h.
Q_DECLARE_TYPEINFO_BODY | ( | QPointer< T > | , |
Q_RELOCATABLE_TYPE | |||
) |
template< typename T > QPointer< T > qPointerFromVariant | ( | const QVariant & | variant | ) |
Returns a guarded pointer that points to the same object that variant holds.
Definition at line 99 of file qpointer.h.
References QtPrivate::EnableInternalData::internalData(), variant, and QtSharedPointer::weakPointerFromVariant_internal().
Definition at line 106 of file qpointer.h.
References p1, p2, swap(), and QPixmap::swap().