QAxObjectInterface Class

QAxObjectInterface is an interface providing common properties of QAxObject and QAxWidget . 更多...

頭: #include <QAxObjectInterface>
CMake: find_package(Qt6 REQUIRED COMPONENTS AxContainer)
target_link_libraries(mytarget PRIVATE Qt6::AxContainer)
qmake: QT += axcontainer
Since: Qt 6.0
繼承者: QAxBaseWidget

公共函數

virtual ~QAxObjectInterface ()
virtual ulong classContext () const = 0
virtual QString control () const = 0
virtual void resetControl () = 0
virtual void setClassContext (ulong classContext ) = 0
virtual bool setControl (const QString & c ) = 0

詳細描述

成員函數文檔編製

[虛擬] QAxObjectInterface:: ~QAxObjectInterface ()

銷毀 QAxObjectInterface .

[pure virtual] ulong QAxObjectInterface:: classContext () const

Returns the context the ActiveX control will run in (default CLSCTX_SERVER).

另請參閱 setClassContext (), QAxBaseWidget::classContext ,和 QAxBaseObject::classContext .

[pure virtual] QString QAxObjectInterface:: control () const

Returns the name of the COM object wrapped by this QAxBase 對象。

另請參閱 setControl (), QAxBaseWidget::control ,和 QAxBaseObject::control .

[pure virtual] void QAxObjectInterface:: resetControl ()

斷開連接並銷毀 COM 對象。

另請參閱 QAxBaseWidget::control and QAxBaseObject::control .

[pure virtual] void QAxObjectInterface:: setClassContext ( ulong classContext )

Sets the context the ActiveX control will run in to classContext

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 this function must be called before setControl () to have any effect.

另請參閱 QAxBaseWidget::classContext and QAxBaseObject::classContext .

[pure virtual] bool QAxObjectInterface:: setControl (const QString & c )

Returns whether setting the COM object succeeded.

Sets the name of the COM object wrapped by this QAxBase 對象到 c .

另請參閱 QAxBaseWidget::control and QAxBaseObject::control .