41 #ifndef QAXAGGREGATED_H 42 #define QAXAGGREGATED_H 44 #include <QtCore/qobject.h> 54 #ifndef QT_NO_WIN_ACTIVEQT 82 #define QAXAGG_IUNKNOWN \ 83 HRESULT WINAPI QueryInterface(REFIID iid, LPVOID *iface) { \ 84 return controllingUnknown()->QueryInterface(iid, iface); } \ 85 ULONG WINAPI AddRef() {return controllingUnknown()->AddRef(); } \ 86 ULONG WINAPI Release() {return controllingUnknown()->Release(); } \ 88 #endif // QT_NO_WIN_ACTIVEQT 94 #endif // QAXAGGREGATED_H T qobject_cast(QObject *object)
#define QT_END_NAMESPACE
This macro expands to.
IUnknown * controllingUnknown() const
Returns the IUnknown interface of the ActiveX control.
QObject * object() const
Returns a pointer to the QObject subclass implementing the COM object.
The QObject class is the base class of all Qt objects.
The QAxAggregated class is an abstract base class for implementations of additional COM interfaces...
#define QT_BEGIN_NAMESPACE
This macro expands to.
virtual ~QAxAggregated()
The destructor is called internally by Qt.
IUnknown * controlling_unknown
QWidget * widget() const
Returns a pointer to the QWidget subclass implementing the ActiveX control.
virtual long queryInterface(const QUuid &iid, void **iface)=0
Reimplement this pure virtual function to support additional COM interfaces.
The QUuid class stores a Universally Unique Identifier (UUID).