<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <!-- /home/espenr/tmp/qt-3.2-espenr-29145/qt-x11-free-3.2.3/extensions/activeqt/doc/index.doc:646 --> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>The QAxContainer Module</title> <style type="text/css"><!-- h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; } a:link { color: #004faf; text-decoration: none } a:visited { color: #672967; text-decoration: none } body { background: #ffffff; color: black; } --></style> </head> <body> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr bgcolor="#E5E5E5"> <td valign=center> <a href="index.html"> <font color="#004faf">Home</font></a> | <a href="classes.html"> <font color="#004faf">All Classes</font></a> | <a href="mainclasses.html"> <font color="#004faf">Main Classes</font></a> | <a href="annotated.html"> <font color="#004faf">Annotated</font></a> | <a href="groups.html"> <font color="#004faf">Grouped Classes</font></a> | <a href="functions.html"> <font color="#004faf">Functions</font></a> </td> <td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>The QAxContainer Module</h1> <p> <p> The <a href="activeqt.html#ActiveQt">ActiveQt</a> framework provides a library implementing a <a href="qwidget.html">QWidget</a> subclass, <a href="qaxwidget.html">QAxWidget</a>, that acts as a container for ActiveX controls. <p> This module is part of the <a href="activeqt.html">ActiveQt framework</a>. (To make an application into an ActiveX server see the <a href="qaxserver.html">QAxServer module</a>.) <p> The module consists of three classes <ol type=1> <li> <a href="qaxbase.html">QAxBase</a> is an abstract class that provides an API to initialize and access a COM/ActiveX object. <li> <a href="qaxobject.html">QAxObject</a> provides a <a href="qobject.html">QObject</a> that wraps a COM object. <li> <a href="qaxwidget.html">QAxWidget</a> is a <a href="qwidget.html">QWidget</a> that wraps an ActiveX control. </ol> <p> Some <a href="qaxcontainer-examples.html">example applications</a> that use standard ActiveX controls to provide high level user interface functionality are provided. <p> <h2> Building the library </h2> <a name="1"></a><p> In the <tt>activeqt</tt> directory (usually <tt>QTDIR/extensions/activeqt</tt>) enter the <tt>container</tt> subdirectory and run <tt>qmake</tt> to generate the makefile, and use the make tool (<tt>nmake</tt> for VC++, <tt>make</tt> for Borland) to build the library. The library <tt>qaxcontainer.lib</tt> will be linked into <tt>QTDIR/lib</tt>. If you build a shared library (i.e. when Qt is a shared library) the <tt>qaxcontainer.dll</tt> will be copied into <tt>QTDIR/bin</tt> and into the <a href="designer-manual.html">Qt Designer</a> plugin directory. <p> <h2> Using the library </h2> <a name="2"></a><p> To use the classes the application must link against the <tt>qaxcontainer.lib</tt> file. Add <p> <pre> LIBS += $(QTDIR)/lib/qaxcontainer.lib </pre> <p> to your application's <tt>.pro</tt> file. <p> See the <a href="qaxwidget.html">QAxWidget</a> API reference for documentation about how to use this class to embed ActiveX controls in Qt applications. <p> The <a href="qaxcontainer-faq.html">QAxContainer FAQ</a> provides additional information about building and distributing Qt applications hosting ActiveX controls. <!-- eof --> <p><address><hr><div align=center> <table width=100% cellspacing=0 border=0><tr> <td>Copyright © 2003 <a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a> <td align=right><div align=right>Qt 3.2.3</div> </table></div></address></body> </html>