QAxObjectInterface Class

QAxObjectInterface は、QAxObject およびQAxWidget の共通プロパティを提供するインターフェースです。もっと見る...

ヘッダー #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::control およびQAxBaseObject::controlも参照のこと

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

ActiveXコントロールが実行されるコンテキストを設定します。classContext

CoCreateInstance呼び出し時の "dwClsContext "引数に影響する。これは、in-procとout-of-procの両方をサポートするコントロールの起動を制御するために使用できます。また、CLSCTX_ENABLE_CLOAKINGとインパーソネーショントークンを使用する場合、コントロールのパーミッションを変更/削減するために使用できます。

この関数はsetControl() の前に呼び出されなければならないことに注意。

QAxBaseWidget::classContext およびQAxBaseObject::classContextも参照のこと

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

COM オブジェクトの設定が成功したかどうかを返す。

このQAxBase オブジェクトがラップする COM オブジェクトの名前をc に設定する。

QAxBaseWidget::control およびQAxBaseObject::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.