QAxSelect Class
QAxSelect クラスは、登録済みの COM コンポーネント用の選択ダイアログを提供します。詳細...
| ヘッダー: | #include <qaxselect.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS AxContainer) target_link_libraries(mytarget PRIVATE Qt6::AxContainer) |
| qmake: | QT += axcontainer |
| 継承元: | QDialog |
パブリック型
| enum | SandboxingLevel { SandboxingNone, SandboxingProcess, SandboxingLowIntegrity, SandboxingAppContainer } |
パブリック関数
| QAxSelect(QWidget *parent = nullptr, Qt::WindowFlags flags = Qt::WindowFlags()) | |
| virtual | ~QAxSelect() override |
| QString | clsid() const |
| QAxSelect::SandboxingLevel | sandboxingLevel() const |
詳細な説明
QAxSelect ダイアログを使用すると、ユーザーはシステムに登録されている COM コンポーネントを閲覧し、その中から 1 つを選択することができます。また、希望するサンドボックスレベルを選択するためのコンボボックスも提供されます。選択されたコンポーネントの CLSID は、アプリケーション内で、例えばQAxWidget の初期化などに使用できます:
「 QAxWidget 」および「ActiveQt Framework」も参照してください 。
メンバ型のドキュメント
enum QAxSelect::SandboxingLevel
SandboxingLevel 列挙型は、ActiveX サンドボックスの望ましいレベルを定義します。
| 定数 | 値 | 説明 |
|---|---|---|
QAxSelect::SandboxingNone | 0 | 特定のサンドボックス化は不要 |
QAxSelect::SandboxingProcess | 1 | ActiveX コントロールを別のプロセスで実行する |
QAxSelect::SandboxingLowIntegrity | 2 | ActiveX コントロールを、別の低整合性プロセスで実行する |
QAxSelect::SandboxingAppContainer (since Qt 6.5) | 3 | ActiveX コントロールを、AppContainer で隔離された別のプロセスで実行する |
サンドボックス化を行うには、ActiveX が EXE としてビルドされているか、AppID「DllSurrogate」が有効化された DLL としてビルドされている必要があります。
メンバ関数のドキュメント
[explicit] QAxSelect::QAxSelect(QWidget *parent = nullptr, Qt::WindowFlags flags = Qt::WindowFlags())
QAxSelect オブジェクトを作成します。ダイアログの親ウィジェットおよびウィンドウのフラグは、それぞれ `parent ` および `flags ` パラメータを使用して、必要に応じて指定できます。
[override virtual noexcept] QAxSelect::~QAxSelect()
QAxSelect オブジェクトを破棄します。
QString QAxSelect::clsid() const
選択された COM コンポーネントの CLSID を返します。
QAxSelect::SandboxingLevel QAxSelect::sandboxingLevel() const
ActiveX コントロールに対して、指定されたレベルのサンドボックス環境を返します。
© 2026 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.