QtCore/qobject.h File Reference
#define Q_DECLARE_INTERFACE |
( |
|
IFace, |
|
|
|
IId |
|
) |
| |
Value:template <> inline const char *qobject_interface_iid<IFace *>() \
{ return IId; } \
{ return reinterpret_cast<IFace *>((object ? object->qt_metacast(IId) : 0)); } \
{
return reinterpret_cast<IFace *
>((
object ?
const_cast<QObject *
>(object)->qt_metacast(IId) : 0)); }
T qobject_cast(QObject *object)
Definition at line 397 of file qobject.h.
Definition at line 375 of file qobject.h.
377 #if !defined(QT_NO_QOBJECT_CHECK)
378 reinterpret_cast<T
>(object)->qt_check_for_QOBJECT_macro(*reinterpret_cast<T>(
object));
380 return static_cast<T
>(
reinterpret_cast<T
>(object)->staticMetaObject.cast(
object));
T qobject_cast |
( |
const QObject * |
object | ) |
|
|
inline |
Definition at line 384 of file qobject.h.
386 #if !defined(QT_NO_QOBJECT_CHECK)
387 reinterpret_cast<T
>(object)->qt_check_for_QOBJECT_macro(*reinterpret_cast<T>(const_cast<QObject *>(
object)));
389 return static_cast<T
>(
reinterpret_cast<T
>(object)->staticMetaObject.cast(
object));
const char* qobject_interface_iid |
( |
| ) |
|
|
inline |
Go to the source code of this file.