doc/src/examples/activeqt/multiple.qdoc
branchRCL_3
changeset 8 3f74d0d4af4c
equal deleted inserted replaced
6:dee5afe5301f 8:3f74d0d4af4c
       
     1 /****************************************************************************
       
     2 **
       
     3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     4 ** All rights reserved.
       
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
       
     6 **
       
     7 ** This file is part of the documentation of the Qt Toolkit.
       
     8 **
       
     9 ** $QT_BEGIN_LICENSE:LGPL$
       
    10 ** No Commercial Usage
       
    11 ** This file contains pre-release code and may not be distributed.
       
    12 ** You may use this file in accordance with the terms and conditions
       
    13 ** contained in the Technology Preview License Agreement accompanying
       
    14 ** this package.
       
    15 **
       
    16 ** GNU Lesser General Public License Usage
       
    17 ** Alternatively, this file may be used under the terms of the GNU Lesser
       
    18 ** General Public License version 2.1 as published by the Free Software
       
    19 ** Foundation and appearing in the file LICENSE.LGPL included in the
       
    20 ** packaging of this file.  Please review the following information to
       
    21 ** ensure the GNU Lesser General Public License version 2.1 requirements
       
    22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
       
    23 **
       
    24 ** In addition, as a special exception, Nokia gives you certain additional
       
    25 ** rights.  These rights are described in the Nokia Qt LGPL Exception
       
    26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
       
    27 **
       
    28 ** If you have questions regarding the use of this file, please contact
       
    29 ** Nokia at qt-info@nokia.com.
       
    30 **
       
    31 **
       
    32 **
       
    33 **
       
    34 **
       
    35 **
       
    36 **
       
    37 **
       
    38 ** $QT_END_LICENSE$
       
    39 **
       
    40 ****************************************************************************/
       
    41 
       
    42 /*!
       
    43     \page qaxserver-demo-multiple.html
       
    44     \title Two Simple Qt Widgets
       
    45 
       
    46     \input examples/activeqt/multiple-demo.qdocinc
       
    47 */
       
    48 
       
    49 /*!
       
    50     \example activeqt/multiple
       
    51     \title Multiple Example (ActiveQt)
       
    52 
       
    53     The Multiple example demonstrates the implementation of a
       
    54     QAxFactory to provide multiple ActiveX controls in a single in
       
    55     process ActiveX server using the \c QAXFACTORY_EXPORT() macro.
       
    56     The ActiveX controls in this example are simple QWidget
       
    57     subclasses that reimplement QWidget::paintEvent().
       
    58 
       
    59     \snippet examples/activeqt/multiple/ax1.h 0
       
    60 
       
    61     The first control draws a filled rectangle. The fill color is exposed
       
    62     as a property. \c Q_CLASSINFO() is used to specify the COM identifiers.
       
    63 
       
    64     \snippet examples/activeqt/multiple/ax2.h 0
       
    65 
       
    66     The second control draws a circle. The linewith is exposed as a property.
       
    67     \c Q_CLASSINFO() is used to specify the COM identifiers, and to set the
       
    68     attributes \e ToSuperClass and \e StockEvents to expose only the API of
       
    69     the class itself, and to add COM stock events to the ActiveX control.
       
    70 
       
    71     \snippet examples/activeqt/multiple/main.cpp 0
       
    72 
       
    73     The classes are exported from the server using the QAxFactory macros.
       
    74 
       
    75     To build the example you must first build the QAxServer library.
       
    76     Then run \c qmake and your make tool in  \c
       
    77     examples/activeqt/multiple.
       
    78 
       
    79     The \l{qaxserver-demo-multiple.html}{demonstration} requires your
       
    80     WebBrowser to support ActiveX controls, and scripting to be
       
    81     enabled.
       
    82 
       
    83     \snippet examples/activeqt/multiple-demo.qdocinc 0
       
    84 */