# *Qt for Com 交互*

Qt COM
Q_PROPERTY ActiveX properties
public slots ActiveX methods
signals ActiveX events

Qt 属性支持的数据类型

Qt data type COM property
bool VARIANT_BOOL
QString BSTR
int int
uint unsigned int
double double
qlonglong CY
qulonglong CY
QColor OLE_COLOR
QDate DATE
QDateTime DATE
QTime DATE
QFont IFontDisp*
QPixmap IPictureDisp*
QVariant VARIANT
QVariantList(same as QList) SAFEARRAY(VARIANT)
QStringList SAFEARRAY(BSTR)
QByteArray SAFEARRAY(BYTE)
QRect User defined type
QSize User defined type
QPoint User defined type

Qt 信号和槽支持的数据类型

Qt data type COM parameter
bool [in]VARIANT_BOOL
bool& [in, out] VARIANT_BOOL*
QString, const QString& [in] BSTR
QString& [in, out] BSTR*
QString& [in, out] BSTR*
int [in] int
int& [in,out] int
uint [in] unsigned int
uint& [in, out] unsigned int*
double [in] double
double& [in, out] double*
QColor, const QColor& [in] OLE_COLOR
QColor& [in, out] OLE_COLOR*
QDate, const QDate& [in] DATE
QDate& [in, out] DATE*
QDateTime, const QDateTime& [in] DATE
QDateTime& [in, out] DATE*
QFont, const QFont& [in] IFontDisp*
QFont& [in, out] IFontDisp**
QPixmap, const QPixmap& [in] IPictureDisp*
QPixmap& [in, out] IPictureDisp**
QList, const QList& [in] SAFEARRAY(VARIANT)
QList& [in, out] SAFEARRAY(VARIANT)*
QStringList, const QStringList& [in] SAFEARRAY(BSTR)
QStringList& [in, out] SAFEARRAY(BSTR)*
QByteArray, const QByteArray& [in] SAFEARRAY(BYTE)
QByteArray& [in, out] SAFEARRAY(BYTE)*
QObject* [in] IDispatch*
QRect& [in, out] struct QRect (user defined)
QSize& [in, out] struct QSize (user defined)
QPoint& [in, out] struct QPoint (user defined)
上一篇:centos ppp拨号


下一篇:supervisor配置详解(转)