Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qobjectdefs.h File Reference

(9ba20b9dc48e42a042bda8373f9197b51be96c60)

#include <QtCore/qnamespace.h>
#include <QtCore/qobjectdefs_impl.h>
#include <QtCore/qtcoreexports.h>
#include <QtCore/qtmetamacros.h>
+ Include dependency graph for qobjectdefs.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  QMethodRawArguments
 
struct  QMetaMethodArgument
 
struct  QMetaMethodReturnArgument
 
struct  QTemplatedMetaMethodReturnArgument< T >
 
class  QMetaObject
 \inmodule QtCore More...
 
struct  QMetaObject::SuperData
 
struct  QMetaObject::Data
 
class  QMetaObject::Connection
 \inmodule QtCore Represents a handle to a signal-slot (or signal-functor) connection. More...
 
struct  QtPrivate::HasQ_OBJECT_Macro< Object >
 

Namespaces

namespace  QtPrivate
 \macro QT_NO_KEYWORDS >
 
namespace  QtPrivate::Invoke
 

Macros

#define QMETHOD_CODE   0
 
#define QSLOT_CODE   1
 
#define QSIGNAL_CODE   2
 
#define QT_PREFIX_CODE(code, a)
 
#define QT_STRINGIFY_METHOD(a)
 
#define QT_STRINGIFY_SLOT(a)
 
#define QT_STRINGIFY_SIGNAL(a)
 
#define QLOCATION   "\0" __FILE__ ":" QT_STRINGIFY(__LINE__)
 
#define METHOD(a)
 
#define SLOT(a)
 
#define SIGNAL(a)
 
#define Q_ARG(Type, data)
 
#define Q_RETURN_ARG(Type, data)
 

Typedefs

template<typename... Args>
using QtPrivate::Invoke::AreOldStyleArgs = std::disjunction<std::is_base_of<QGenericArgument, Args>...>
 
template<typename T , typename... Args>
using QtPrivate::Invoke::IfNotOldStyleArgs
 

Functions

Q_CORE_EXPORT const char * qFlagLocation (const char *method)
 
template<typename T >
constexpr const QMetaTypeInterfaceQtPrivate::qMetaTypeInterfaceForType ()
 
template<typename T >
QMetaMethodArgument QtPrivate::Invoke::argument (const char *name, const T &t)
 
template<typename T >
QTemplatedMetaMethodReturnArgument< T > QtPrivate::Invoke::returnArgument (const char *name, T &t)
 
template<typename T >
const char * QtPrivate::Invoke::typenameHelper (const T &)
 
template<typename T >
const voidQtPrivate::Invoke::dataHelper (const T &t)
 
template<typename T >
const QMetaTypeInterfaceQtPrivate::Invoke::metaTypeHelper (const T &)
 
const char * QtPrivate::Invoke::typenameHelper (QMetaMethodArgument a)
 
const voidQtPrivate::Invoke::dataHelper (QMetaMethodArgument a)
 
const QMetaTypeInterfaceQtPrivate::Invoke::metaTypeHelper (QMetaMethodArgument a)
 
const char * QtPrivate::Invoke::typenameHelper (const char *)=delete
 
template<typename T >
const voidQtPrivate::Invoke::dataHelper (const char *)=delete
 
const QMetaTypeInterfaceQtPrivate::Invoke::metaTypeHelper (const char *)=delete
 
const char * QtPrivate::Invoke::typenameHelper (const char16_t *)=delete
 
template<typename T >
const voidQtPrivate::Invoke::dataHelper (const char16_t *)=delete
 
const QMetaTypeInterfaceQtPrivate::Invoke::metaTypeHelper (const char16_t *)=delete
 
template<typename... Args>
auto QtPrivate::invokeMethodHelper (QMetaMethodReturnArgument r, const Args &... arguments)
 
template<typename T >
void qReturnArg (const T &&)=delete
 
template<typename T >
QTemplatedMetaMethodReturnArgument< T > qReturnArg (T &data)
 
void swap (QMetaObject::Connection &lhs, QMetaObject::Connection &rhs) noexcept
 

Macro Definition Documentation

◆ METHOD

#define METHOD ( a)
Value:
#define QT_STRINGIFY_METHOD(a)
Definition qobjectdefs.h:44
#define QLOCATION
Definition qobjectdefs.h:48
Q_CORE_EXPORT const char * qFlagLocation(const char *method)
Definition qobject.cpp:2556
GLboolean GLboolean GLboolean GLboolean a
[7]

Definition at line 50 of file qobjectdefs.h.

◆ Q_ARG

#define Q_ARG ( Type,
data )
Value:
QMetaMethodArgument argument(const char *name, const T &t)
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
[0]
#define QT_STRINGIFY(x)
Definition moc.h:24

Definition at line 63 of file qobjectdefs.h.

◆ Q_RETURN_ARG

#define Q_RETURN_ARG ( Type,
data )
Value:
QTemplatedMetaMethodReturnArgument< T > returnArgument(const char *name, T &t)

Definition at line 64 of file qobjectdefs.h.

◆ QLOCATION

#define QLOCATION   "\0" __FILE__ ":" QT_STRINGIFY(__LINE__)

Definition at line 48 of file qobjectdefs.h.

◆ QMETHOD_CODE

#define QMETHOD_CODE   0

Definition at line 40 of file qobjectdefs.h.

◆ QSIGNAL_CODE

#define QSIGNAL_CODE   2

Definition at line 42 of file qobjectdefs.h.

◆ QSLOT_CODE

#define QSLOT_CODE   1

Definition at line 41 of file qobjectdefs.h.

◆ QT_PREFIX_CODE

#define QT_PREFIX_CODE ( code,
a )
Value:
uint16_t code

Definition at line 43 of file qobjectdefs.h.

◆ QT_STRINGIFY_METHOD

#define QT_STRINGIFY_METHOD ( a)
Value:
#define QT_PREFIX_CODE(code, a)
Definition qobjectdefs.h:43
#define QMETHOD_CODE
Definition qobjectdefs.h:40

Definition at line 44 of file qobjectdefs.h.

◆ QT_STRINGIFY_SIGNAL

#define QT_STRINGIFY_SIGNAL ( a)
Value:
#define QSIGNAL_CODE
Definition qobjectdefs.h:42

Definition at line 46 of file qobjectdefs.h.

◆ QT_STRINGIFY_SLOT

#define QT_STRINGIFY_SLOT ( a)
Value:
#define QSLOT_CODE
Definition qobjectdefs.h:41

Definition at line 45 of file qobjectdefs.h.

◆ SIGNAL

#define SIGNAL ( a)
Value:

Definition at line 53 of file qobjectdefs.h.

◆ SLOT

#define SLOT ( a)
Value:

Definition at line 52 of file qobjectdefs.h.

Function Documentation

◆ qFlagLocation()

const char * qFlagLocation ( const char * method)

Definition at line 2556 of file qobject.cpp.

◆ qReturnArg() [1/2]

template<typename T >
void qReturnArg ( const T && )
delete

◆ qReturnArg() [2/2]

template<typename T >
QTemplatedMetaMethodReturnArgument< T > qReturnArg ( T & data)
inline

Definition at line 228 of file qobjectdefs.h.

◆ swap()

void swap ( QMetaObject::Connection & lhs,
QMetaObject::Connection & rhs )
inlinenoexcept

Definition at line 680 of file qobjectdefs.h.