QAxBaseObject Class

QAxBaseObject provides static properties and signals for QAxObject . 更多...

头: #include <QAxBaseObject>
CMake: find_package(Qt6 COMPONENTS AxContainer REQUIRED)
target_link_libraries(mytarget PRIVATE Qt6::AxContainer)
qmake: QT += axcontainer
Since: Qt 6.0
继承: QObject
继承者: QAxObject

特性

信号

void exception (int code , const QString & source , const QString & desc , const QString & help )
void propertyChanged (const QString & name )
void signal (const QString & name , int argc , void * argv )

详细描述

特性文档编制

classContext : const ulong

This property holds the context the ActiveX control will run in (default CLSCTX_SERVER).

The property affects the "dwClsContext" argument when calling CoCreateInstance. This can be used to control in-proc vs. out-of-proc startup for controls supporting both alternatives. Also, it can be used to modify/reduce control permissions when used with CLSCTX_ENABLE_CLOAKING and an impersonation token.

Note that it must be set before setControl() to have any effect.

另请参阅 QAxBaseWidget::control .

control : const QString

此特性保持包裹的 COM 对象名称通过此 QAxBaseObject 对象。

设置此特性将初始化 COM (组件对象模型) 对象。关闭先前设置的任何 COM 对象。

设置此特性的最有效方式是使用注册组件 UUID,如

另请参阅 QAxBaseWidget::control and QAxBaseWidget::classContext .

成员函数文档编制

[signal] void QAxBaseObject:: exception ( int code , const QString & source , const QString & desc , const QString & help )

This signal is emitted when the COM object throws an exception while called using the OLE automation interface IDispatch. code , source , desc and help provide information about the exception as provided by the COM server and can be used to provide useful feedback to the end user. help includes the help file, and the help context ID in brackets, e.g. "filename [id]".

另请参阅 QAxBaseWidget::exception ().

[signal] void QAxBaseObject:: propertyChanged (const QString & name )

若 COM (组件对象模型) 对象支持特性通知,此信号获得发射当特性称为 name 改变。

另请参阅 QAxBaseWidget::propertyChanged ().

[signal] void QAxBaseObject:: signal (const QString & name , int argc , void * argv )

This generic signal gets emitted when the COM object issues the event name . argc is the number of parameters provided by the event (DISPPARAMS.cArgs), and argv is the pointer to the parameter values (DISPPARAMS.rgvarg). Note that the order of parameter values is turned around, ie. the last element of the array is the first parameter in the function.

另请参阅 QAxBaseWidget::signal ().