QAxSelect Class

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

头: #include <QAxSelect>
qmake: QT += axcontainer
继承: QDialog

公共函数

QAxSelect (QWidget * parent = Q_NULLPTR, Qt::WindowFlags flags = Qt::WindowFlags())
~QAxSelect ()
QString clsid () const

额外继承成员

详细描述

QAxSelect class provides a selection dialog for registered COM components.

QAxSelect dialog can be used to provide users with a way to browse the registered COM components of the system and select one. 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 框架 .

成员函数文档编制

QAxSelect:: QAxSelect ( QWidget * parent = Q_NULLPTR, Qt::WindowFlags flags = Qt::WindowFlags())

构造 QAxSelect object. Dialog parent widget and window flags can be optionally specified with parent and flags parameters, respectively.

QAxSelect:: ~QAxSelect ()

销毁 QAxSelect 对象。

QString QAxSelect:: clsid () const

Returns the CLSID of the selected COM component.