• # *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)
  • 相关阅读:
    团队第二次冲刺10(6.03)
    购买图书问题
    找水王02
    学习进度13
    团队第二次冲刺09(6.02)
    团队第二次冲刺08(6.01)
    C++通过Swig跨线程回调Python代码
    Windows 10系统永久关闭Windows Defender Antivirus防病毒程序方法
    Windows系统Python直接调用C++ DLL
    Windows10系统Python2.7通过Swig调用C++过程
  • 原文地址:https://www.cnblogs.com/cheungxiongwei/p/8081973.html
Copyright © 2020-2023  润新知