zoukankan      html  css  js  c++  java
  • # *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 大排序算法总结
    什么是堆和栈
    8张思维导图学习javascript
    Service Locator 模式
    Unity系列文章
    IoC模式(依赖、依赖倒置、依赖注入、控制反转)
    ASP.NET应用程序与页面生命周期
    TCP/IP网络协议的通俗理解,SOCKET,HTTP,SOAP
    部分计算机上视频不能自动刷新的解决方案
    数梦工场Java实习面试(offer到手含面试经验及答案)
  • 原文地址:https://www.cnblogs.com/cheungxiongwei/p/8081973.html
Copyright © 2011-2022 走看看