QAxSelect 類

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

頭: #include <QAxSelect>
qmake: QT += axcontainer
繼承: 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();
}
					

另請參閱 QAxWidget and ActiveQt 框架 .

成員類型文檔編製

enum QAxSelect:: SandboxingLevel

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

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

該枚舉在 Qt 5.13 引入或被修改。

成員函數文檔編製

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] QAxSelect:: ~QAxSelect ()

銷毀 QAxSelect 對象。

QString QAxSelect:: clsid () const

返迴所選 COM 組件的 CLSID (類標識)。

QAxSelect::SandboxingLevel QAxSelect:: sandboxingLevel () const

Returns the desired level of sandboxing for the ActiveX control.

該函數在 Qt 5.13 引入。