QAxSelect Class

The 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
  • 8 个公有函数继承自 QDialog
  • 216 个公有函数继承自 QWidget

其他继承的成员

  • 2 个属性继承自 QDialog
  • 59 个属性继承自 QWidget
  • 5 个公有槽函数继承自 QDialog
  • 19 个公有槽函数继承自 QWidget
  • 3 个信号继承自 QDialog
  • 3 个信号继承自 QWidget
  • 5 个静态公有成员继承自 QWidget
  • 6 个受保护的函数继承自 QDialog
  • 35 个受保护的函数继承自 QWidget
  • 1 个受保护的槽函数继承自 QWidget

详细描述

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

参见 QAxWidget and ActiveQt Framework.

成员函数

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

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.