QAxSelect Class
A classe QAxSelect oferece uma caixa de diálogo de seleção para componentes COM registrados. Mais...
| Cabeçalho: | #include <qaxselect.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS AxContainer) target_link_libraries(mytarget PRIVATE Qt6::AxContainer) |
| qmake: | QT += axcontainer |
| Herdado de: | QDialog |
Tipos públicos
| enum | SandboxingLevel { SandboxingNone, SandboxingProcess, SandboxingLowIntegrity, SandboxingAppContainer } |
Funções públicas
| QAxSelect(QWidget *parent = nullptr, Qt::WindowFlags flags = Qt::WindowFlags()) | |
| virtual | ~QAxSelect() override |
| QString | clsid() const |
| QAxSelect::SandboxingLevel | sandboxingLevel() const |
Descrição detalhada
A caixa de diálogo QAxSelect pode ser usada para permitir que os usuários naveguem pelos componentes COM registrados no sistema e selecionem um deles. Ela também oferece uma caixa de combinação para selecionar o nível de sandboxing desejado. O CLSID do componente selecionado pode então ser usado no aplicativo para, por exemplo, inicializar um QAxWidget:
Veja também QAxWidget e ActiveQt Framework.
Documentação sobre tipos de membros
enum QAxSelect::SandboxingLevel
A enumeração SandboxingLevel define o nível desejado de isolamento do ActiveX.
| Constante | Valor | Descrição |
|---|---|---|
QAxSelect::SandboxingNone | 0 | Não é desejado nenhum isolamento específico |
QAxSelect::SandboxingProcess | 1 | Executar o controle ActiveX em um processo separado |
QAxSelect::SandboxingLowIntegrity | 2 | Executar o controle ActiveX em um processo separado de baixa integridade |
QAxSelect::SandboxingAppContainer (since Qt 6.5) | 3 | Executar o controle ActiveX em um processo separado isolado por AppContainer |
O sandboxing exige que o ActiveX seja compilado como um EXE ou como uma DLL com o AppID “DllSurrogate” habilitado.
Documentação das funções de membro
[explicit] QAxSelect::QAxSelect(QWidget *parent = nullptr, Qt::WindowFlags flags = Qt::WindowFlags())
Cria um objeto QAxSelect. Os parâmetros “ parent ” e “ flags ” podem ser especificados opcionalmente para definir o widget pai da caixa de diálogo e os sinalizadores da janela, respectivamente.
[override virtual noexcept] QAxSelect::~QAxSelect()
Destrói o objeto ` QAxSelect `.
QString QAxSelect::clsid() const
Retorna o CLSID do componente COM selecionado.
QAxSelect::SandboxingLevel QAxSelect::sandboxingLevel() const
Retorna o nível desejado de isolamento (sandboxing) para o controle 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.