QAxSelect Class

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

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

Public Functions

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

Detailed Description

The 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();
}

See also QAxWidget and ActiveQt Framework.

Member Function Documentation

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

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

QAxSelect::~QAxSelect()

Destroys the QAxSelect object.

QString QAxSelect::clsid() const

Returns the CLSID of the selected COM component.