QAxSelect Class

The QAxSelect class provides a selection dialog for registered COM components. More...

Header: #include <QAxSelect>
qmake: QT += axcontainer
Inherits: QDialog

Public Types

enum SandboxingLevel { SandboxingNone, SandboxingProcess, SandboxingLowIntegrity }

Detailed Description

QAxSelect dialog can be used to provide users with a way to browse the registered COM components of the system and select one. It also provides a combo box for selecting desired sandboxing level. The CLSID of the selected component can then be used in the application to e.g. initialize a QAxWidget:

 QAxSelect select;
 if (select.exec()) {
     QAxWidget *container = new QAxWidget;
     container->setControl(select.clsid());
     container->show();
 }

See also QAxWidget and ActiveQt Framework.

Member Type Documentation

enum QAxSelect::SandboxingLevel

The SandboxingLevel enumeration defines the desired level of ActiveX sandboxing.

ConstantValueDescription
QAxSelect::SandboxingNone0No specific sandboxing desired
QAxSelect::SandboxingProcess1Run ActiveX control in a separate process
QAxSelect::SandboxingLowIntegrity2Run ActiveX control in a separate low-integrity process

Sandboxing requires that the ActiveX is either built as an EXE, or as a DLL with AppID "DllSurrogate" enabled.

This enum was introduced or modified in Qt 5.13.