Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions |

# The QAxContainer Module

The ActiveQt framework provides a library implementing a QWidget subclass, QAxWidget, that acts as a container for ActiveX controls.

This module is part of the ActiveQt framework. (To make an application into an ActiveX server see the QAxServer module.)

The module consists of three classes

1. QAxBase is an abstract class that provides an API to initialize and access a COM/ActiveX object.
2. QAxObject provides a QObject that wraps a COM object.
3. QAxWidget is a QWidget that wraps an ActiveX control.

Some example applications that use standard ActiveX controls to provide high level user interface functionality are provided.

## Building the library

In the `activeqt` directory (usually `QTDIR/extensions/activeqt`) enter the `container` subdirectory and run `qmake` to generate the makefile, and use the make tool (`nmake` for VC++, `make` for Borland) to build the library. The library `qaxcontainer.lib` will be linked into `QTDIR/lib`. If you build a shared library (i.e. when Qt is a shared library) the `qaxcontainer.dll` will be copied into `QTDIR/bin` and into the Qt Designer plugin directory.

## Using the library

To use the classes the application must link against the `qaxcontainer.lib` file. Add

        LIBS += $(QTDIR)/lib/qaxcontainer.lib

to your application's `.pro` file.

See the QAxWidget API reference for documentation about how to use this class to embed ActiveX controls in Qt applications.

The QAxContainer FAQ provides additional information about building and distributing Qt applications hosting ActiveX controls.