The QAxSelect class provides a selection dialog for registered COM components. More...
Header: | #include <QAxSelect> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS AxContainer) target_link_libraries(mytarget PRIVATE Qt6::AxContainer) |
qmake: | QT += axcontainer |
Inherits: | QDialog |
enum | SandboxingLevel { SandboxingNone, SandboxingProcess, SandboxingLowIntegrity } |
QAxSelect(QWidget *parent = nullptr, Qt::WindowFlags flags = Qt::WindowFlags()) | |
virtual | ~QAxSelect() override |
QString | clsid() const |
QAxSelect::SandboxingLevel | sandboxingLevel() const |
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.
[since 5.13]
enum QAxSelect::SandboxingLevelThe SandboxingLevel enumeration defines the desired level of ActiveX sandboxing.
Constant | Value | Description |
---|---|---|
QAxSelect::SandboxingNone |
0 |
No specific sandboxing desired |
QAxSelect::SandboxingProcess |
1 |
Run ActiveX control in a separate process |
QAxSelect::SandboxingLowIntegrity |
2 |
Run 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.
Constructs a QAxSelect object. Dialog parent widget and window flags can be optionally specified with parent and flags parameters, respectively.
[override virtual]
QAxSelect::~QAxSelect()Destroys the QAxSelect object.
Returns the CLSID of the selected COM component.
[since 5.13]
QAxSelect::SandboxingLevel QAxSelect::sandboxingLevel()
constReturns the desired level of sandboxing for the ActiveX control.
This function was introduced in Qt 5.13.
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: