QAxObjectInterface Class

QAxObjectInterface는 QAxObjectQAxWidget 의 공통 속성을 제공하는 인터페이스입니다. 더 보기...

헤더: #include <QAxObjectInterface>
CMake: find_package(Qt6 REQUIRED COMPONENTS AxContainer)
target_link_libraries(mytarget PRIVATE Qt6::AxContainer)
qmake: QT += axcontainer
이후: 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

상세 설명

멤버 함수 문서

[virtual noexcept] QAxObjectInterface::~QAxObjectInterface()

QAxObjectInterface 를 파괴합니다.

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

ActiveX 컨트롤이 실행될 컨텍스트를 반환합니다(기본값은 CLSCTX_SERVER).

setClassContext(), QAxBaseWidget::classContext, QAxBaseObject::classContext참조하세요 .

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

QAxBase 객체로 래핑된 COM 객체의 이름을 반환합니다.

setControl(), QAxBaseWidget::control, QAxBaseObject::control도 참조하세요 .

[pure virtual] void QAxObjectInterface::resetControl()

COM 개체의 연결을 끊고 삭제합니다.

QAxBaseWidget::controlQAxBaseObject::control도 참조하세요 .

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

ActiveX 컨트롤이 실행될 컨텍스트를 설정합니다. classContext

CoCreateInstance를 호출할 때 "dwClsContext" 인수에 영향을 줍니다. 이는 두 가지 대안을 모두 지원하는 컨트롤의 인-프로크 시작과 아웃-오브-프로크 시작을 제어하는 데 사용할 수 있습니다. 또한 CLSCTX_ENABLE_CLOAKING 및 가장 토큰과 함께 사용할 경우 제어 권한을 수정/축소하는 데 사용할 수 있습니다.

이 함수를 setControl() 전에 호출해야 효과를 볼 수 있습니다.

QAxBaseWidget::classContextQAxBaseObject::classContext참조하세요 .

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

COM 객체 설정이 성공했는지 여부를 반환합니다.

QAxBase 객체로 래핑된 COM 객체의 이름을 c 으로 설정합니다.

QAxBaseWidget::controlQAxBaseObject::control도 참조하세요 .

© 2025 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.