The QAxSelect class provides a selection dialog for registered COM components. 更多...
头: | #include <QAxSelect> |
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 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(); }
另请参阅 QAxWidget and ActiveQt 框架 .
The SandboxingLevel enumeration defines the desired level of ActiveX sandboxing.
常量 | 值 | 描述 |
---|---|---|
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 |
QAxSelect::SandboxingAppContainer
|
3
|
[since 6.5] Run ActiveX control in a separate AppContainer-isolated process |
Sandboxing requires that the ActiveX is either built as an EXE, or as a DLL with AppID "DllSurrogate" enabled.
[explicit]
QAxSelect::
QAxSelect
(
QWidget
*
parent
= nullptr,
Qt::WindowFlags
flags
= Qt::WindowFlags())
Constructs a QAxSelect object. Dialog parent widget and window flags can be optionally specified with parent and flags 参数,分别。
[override virtual noexcept]
QAxSelect::
~QAxSelect
()
销毁 QAxSelect 对象。
返回所选 COM 组件的 CLSID (类标识)。
Returns the desired level of sandboxing for the ActiveX control.