QAxObjectInterface Class

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

Header: #include <QAxObjectInterface>
CMake: find_package(Qt6 REQUIRED COMPONENTS AxContainer)
target_link_libraries(mytarget PRIVATE Qt6::AxContainer)
qmake: QT += axcontainer
Since: Qt 6.0
Inherited By:

QAxBaseWidget

Public Functions

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

Detailed Description

Member Function Documentation

[virtual] QAxObjectInterface::~QAxObjectInterface()

Destroys the QAxObjectInterface.

int QAxObjectInterface::classContext() const

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

See also setClassContext(), QAxBaseWidget::classContext, and QAxBaseObject::classContext.

int QAxObjectInterface::control() const

Returns the name of the COM object wrapped by this QAxBase object.

See also setControl(), QAxBaseWidget::control, and QAxBaseObject::control.

[pure virtual] void QAxObjectInterface::resetControl()

Disconnects and destroys the COM object.

See also QAxBaseWidget::control and QAxBaseObject::control.

[pure virtual] void QAxObjectInterface::setClassContext(int 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.

See also QAxBaseWidget::classContext and QAxBaseObject::classContext.

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

Returns whether setting the COM object succeeded.

Sets the name of the COM object wrapped by this QAxBase object to c.

See also QAxBaseWidget::control and QAxBaseObject::control.

© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.