Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-updates > by-pkgid > 1dd17e0d683ef79b4bb6872bbf359d7f > files > 4908

qt4-doc-4.8.7-26.2.mga7.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qaxwidget.cpp -->
  <title>Qt 4.8: QAxWidget Class Reference</title>
  <link rel="stylesheet" type="text/css" href="style/style.css" />
  <script src="scripts/jquery.js" type="text/javascript"></script>
  <script src="scripts/functions.js" type="text/javascript"></script>
  <link rel="stylesheet" type="text/css" href="style/superfish.css" />
  <link rel="stylesheet" type="text/css" href="style/narrow.css" />
  <!--[if IE]>
<meta name="MSSmartTagsPreventParsing" content="true">
<meta http-equiv="imagetoolbar" content="no">
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="style/style_ie6.css">
<![endif]-->
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="style/style_ie7.css">
<![endif]-->
<!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="style/style_ie8.css">
<![endif]-->

<script src="scripts/superfish.js" type="text/javascript"></script>
<script src="scripts/narrow.js" type="text/javascript"></script>

</head>
<body class="" onload="CheckEmptyAndLoadList();">
 <div class="header" id="qtdocheader">
    <div class="content"> 
    <div id="nav-logo">
      <a href="index.html">Home</a></div>
    <a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a>
    <div id="narrowsearch"></div>
    <div id="nav-topright">
      <ul>
        <li class="nav-topright-home"><a href="http://qt.digia.com/">Qt HOME</a></li>
        <li class="nav-topright-dev"><a href="http://qt-project.org/">DEV</a></li>
        <li class="nav-topright-doc nav-topright-doc-active"><a href="http://qt-project.org/doc/">
          DOC</a></li>
        <li class="nav-topright-blog"><a href="http://blog.qt.digia.com/">BLOG</a></li>
      </ul>
    </div>
    <div id="shortCut">
      <ul>
        <li class="shortCut-topleft-inactive"><span><a href="index.html">Qt 4.8</a></span></li>
        <li class="shortCut-topleft-active"><a href="http://qt-project.org/doc/">ALL VERSIONS        </a></li>
      </ul>
     </div>
 <ul class="sf-menu" id="narrowmenu"> 
             <li><a href="#">API Lookup</a> 
                 <ul> 
                     <li><a href="classes.html">Class index</a></li> 
           <li><a href="functions.html">Function index</a></li> 
           <li><a href="modules.html">Modules</a></li> 
           <li><a href="namespaces.html">Namespaces</a></li> 
           <li><a href="qtglobal.html">Global Declarations</a></li> 
           <li><a href="qdeclarativeelements.html">QML elements</a></li> 
             </ul> 
             </li> 
             <li><a href="#">Qt Topics</a> 
                 <ul> 
                        <li><a href="qt-basic-concepts.html">Programming with Qt</a></li>  
                        <li><a href="qtquick.html">Device UIs &amp; Qt Quick</a></li>  
                        <li><a href="qt-gui-concepts.html">UI Design with Qt</a></li>  
                        <li><a href="supported-platforms.html">Supported Platforms</a></li>  
                        <li><a href="technology-apis.html">Qt and Key Technologies</a></li>  
                        <li><a href="best-practices.html">How-To's and Best Practices</a></li>  
              </ul> 
                 </li> 
                 <li><a href="#">Examples</a> 
                     <ul> 
                       <li><a href="all-examples.html">Examples</a></li> 
                       <li><a href="tutorials.html">Tutorials</a></li> 
                       <li><a href="demos.html">Demos</a></li> 
                       <li><a href="qdeclarativeexamples.html">QML Examples</a></li> 
                </ul> 
                     </li> 
                 </ul> 
    </div>
  </div>
  <div class="wrapper">
    <div class="hd">
      <span></span>
    </div>
    <div class="bd group">
      <div class="sidebar">
        <div class="searchlabel">
          Search index:</div>
        <div class="search" id="sidebarsearch">
          <form id="qtdocsearch" action="" onsubmit="return false;">
            <fieldset>
              <input type="text" name="searchstring" id="pageType" value="" />
 <div id="resultdialog"> 
 <a href="#" id="resultclose">Close</a> 
 <p id="resultlinks" class="all"><a href="#" id="showallresults">All</a> | <a href="#" id="showapiresults">API</a> | <a href="#" id="showarticleresults">Articles</a> | <a href="#" id="showexampleresults">Examples</a></p> 
 <p id="searchcount" class="all"><span id="resultcount"></span><span id="apicount"></span><span id="articlecount"></span><span id="examplecount"></span>&nbsp;results:</p> 
 <ul id="resultlist" class="all"> 
 </ul> 
 </div> 
            </fieldset>
          </form>
        </div>
        <div class="box first bottombar" id="lookup">
          <h2 title="API Lookup"><span></span>
            API Lookup</h2>
          <div  id="list001" class="list">
          <ul id="ul001" >
              <li class="defaultLink"><a href="classes.html">Class index</a></li>
              <li class="defaultLink"><a href="functions.html">Function index</a></li>
              <li class="defaultLink"><a href="modules.html">Modules</a></li>
              <li class="defaultLink"><a href="namespaces.html">Namespaces</a></li>
              <li class="defaultLink"><a href="qtglobal.html">Global Declarations</a></li>
              <li class="defaultLink"><a href="qdeclarativeelements.html">QML elements</a></li>
            </ul> 
          </div>
        </div>
        <div class="box bottombar" id="topics">
          <h2 title="Qt Topics"><span></span>
            Qt Topics</h2>
          <div id="list002" class="list">
            <ul id="ul002" >
               <li class="defaultLink"><a href="qt-basic-concepts.html">Programming with Qt</a></li> 
               <li class="defaultLink"><a href="qtquick.html">Device UIs &amp; Qt Quick</a></li> 
               <li class="defaultLink"><a href="qt-gui-concepts.html">UI Design with Qt</a></li> 
               <li class="defaultLink"><a href="supported-platforms.html">Supported Platforms</a></li>  
               <li class="defaultLink"><a href="technology-apis.html">Qt and Key Technologies</a></li> 
               <li class="defaultLink"><a href="best-practices.html">How-To's and Best Practices</a></li> 
            </ul>  
          </div>
        </div>
        <div class="box" id="examples">
          <h2 title="Examples"><span></span>
            Examples</h2>
          <div id="list003" class="list">
        <ul id="ul003">
              <li class="defaultLink"><a href="all-examples.html">Examples</a></li>
              <li class="defaultLink"><a href="tutorials.html">Tutorials</a></li>
              <li class="defaultLink"><a href="demos.html">Demos</a></li>
              <li class="defaultLink"><a href="qdeclarativeexamples.html">QML Examples</a></li>
            </ul> 
          </div>
        </div>
      </div>
      <div class="wrap">
        <div class="toolbar">
          <div class="breadcrumb toolblock">
            <ul>
              <li class="first"><a href="index.html">Home</a></li>
              <!--  Breadcrumbs go here -->
<li><a href="modules.html">Modules</a></li>
<li><a href="qaxcontainer.html">QAxContainer</a></li>
<li>QAxWidget</li>
            </ul>
          </div>
          <div class="toolbuttons toolblock">
            <ul>
              <li id="smallA" class="t_button">A</li>
              <li id="medA" class="t_button active">A</li>
              <li id="bigA" class="t_button">A</li>
              <li id="print" class="t_button"><a href="javascript:this.print();">
                <span>Print</span></a></li>
            </ul>
        </div>
        </div>
        <div class="content mainContent">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#protected-functions">Protected Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<h1 class="title">QAxWidget Class Reference</h1>
<!-- $$$QAxWidget-brief -->
<p>The QAxWidget class is a <a href="qwidget.html">QWidget</a> that wraps an ActiveX control. <a href="#details">More...</a></p>
<!-- @@@QAxWidget -->
<pre class="cpp"> <span class="preprocessor">#include &lt;QAxWidget&gt;</span></pre><p><b>Inherits: </b><a href="qwidget.html">QWidget</a> and <a href="qaxbase.html">QAxBase</a>.</p>
<ul>
<li><a href="qaxwidget-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qaxwidget.html#QAxWidget">QAxWidget</a></b> ( QWidget * <i>parent</i> = 0, Qt::WindowFlags <i>f</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qaxwidget.html#QAxWidget-2">QAxWidget</a></b> ( const QString &amp; <i>c</i>, QWidget * <i>parent</i> = 0, Qt::WindowFlags <i>f</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qaxwidget.html#QAxWidget-3">QAxWidget</a></b> ( IUnknown * <i>iface</i>, QWidget * <i>parent</i> = 0, Qt::WindowFlags <i>f</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qaxwidget.html#dtor.QAxWidget">~QAxWidget</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QAxAggregated * </td><td class="memItemRight bottomAlign"><b><a href="qaxwidget.html#createAggregate">createAggregate</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qaxwidget.html#doVerb">doVerb</a></b> ( const QString &amp; <i>verb</i> )</td></tr>
</table>
<a name="reimplemented-public-functions"></a>
<h2>Reimplemented Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qaxwidget.html#clear">clear</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QSize </td><td class="memItemRight bottomAlign"><b><a href="qaxwidget.html#minimumSizeHint">minimumSizeHint</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QSize </td><td class="memItemRight bottomAlign"><b><a href="qaxwidget.html#sizeHint">sizeHint</a></b> () const</td></tr>
</table>
<ul>
<li class="fn">221 public functions inherited from <a href="qwidget.html#public-functions">QWidget</a></li>
<li class="fn">19 public functions inherited from <a href="qaxbase.html#public-functions">QAxBase</a></li>
<li class="fn">29 public functions inherited from <a href="qobject.html#public-functions">QObject</a></li>
<li class="fn">13 public functions inherited from <a href="qpaintdevice.html#public-functions">QPaintDevice</a></li>
</ul>
<a name="protected-functions"></a>
<h2>Protected Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qaxwidget.html#createHostWindow">createHostWindow</a></b> ( bool <i>initialized</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qaxwidget.html#createHostWindow-2">createHostWindow</a></b> ( bool <i>initialized</i>, const QByteArray &amp; <i>data</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qaxwidget.html#translateKeyEvent">translateKeyEvent</a></b> ( int <i>message</i>, int <i>keycode</i> ) const</td></tr>
</table>
<a name="reimplemented-protected-functions"></a>
<h2>Reimplemented Protected Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qaxwidget.html#changeEvent">changeEvent</a></b> ( QEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qaxwidget.html#connectNotify">connectNotify</a></b> ( const char * <i>signal</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qaxwidget.html#initialize">initialize</a></b> ( IUnknown ** <i>ptr</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qaxwidget.html#resizeEvent">resizeEvent</a></b> ( QResizeEvent * )</td></tr>
</table>
<ul>
<li class="fn">37 protected functions inherited from <a href="qwidget.html#protected-functions">QWidget</a></li>
<li class="fn">5 protected functions inherited from <a href="qaxbase.html#protected-functions">QAxBase</a></li>
<li class="fn">8 protected functions inherited from <a href="qobject.html#protected-functions">QObject</a></li>
<li class="fn">1 protected function inherited from <a href="qpaintdevice.html#protected-functions">QPaintDevice</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li class="fn">58 properties inherited from <a href="qwidget.html#properties">QWidget</a></li>
<li class="fn">1 property inherited from <a href="qaxbase.html#properties">QAxBase</a></li>
<li class="fn">1 property inherited from <a href="qobject.html#properties">QObject</a></li>
<li class="fn">19 public slots inherited from <a href="qwidget.html#public-slots">QWidget</a></li>
<li class="fn">1 public slot inherited from <a href="qobject.html#public-slots">QObject</a></li>
<li class="fn">1 signal inherited from <a href="qwidget.html#signals">QWidget</a></li>
<li class="fn">3 signals inherited from <a href="qaxbase.html#signals">QAxBase</a></li>
<li class="fn">1 signal inherited from <a href="qobject.html#signals">QObject</a></li>
<li class="fn">4 static public members inherited from <a href="qwidget.html#static-public-members">QWidget</a></li>
<li class="fn">7 static public members inherited from <a href="qobject.html#static-public-members">QObject</a></li>
<li class="fn">1 protected slot inherited from <a href="qwidget.html#protected-slots">QWidget</a></li>
</ul>
<a name="details"></a>
<!-- $$$QAxWidget-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QAxWidget class is a <a href="qwidget.html">QWidget</a> that wraps an ActiveX control.</p>
<p>A QAxWidget can be instantiated as an empty object, with the name of the ActiveX control it should wrap, or with an existing interface pointer to the ActiveX control. The ActiveX control's properties, methods and events which only use <a href="qaxbase.html">QAxBase</a> supported data types, become available as Qt properties, slots and signals. The base class <a href="qaxbase.html">QAxBase</a> provides an API to access the ActiveX directly through the <tt>IUnknown</tt> pointer.</p>
<p>QAxWidget is a <a href="qwidget.html">QWidget</a> and can mostly be used as such, e.g&#x2e; it can be organized in a widget hierarchy and layouts or act as an event filter. Standard widget properties, e.g&#x2e; <a href="qwidget.html#enabled-prop">enabled</a> are supported, but it depends on the ActiveX control to implement support for ambient properties like e.g&#x2e; palette or font. QAxWidget tries to provide the necessary hints.</p>
<p>However, you cannot reimplement Qt-specific event handlers like mousePressEvent or keyPressEvent and expect them to be called reliably. The embedded control covers the QAxWidget completely, and usually handles the user interface itself. Use control-specific APIs (i.e&#x2e; listen to the signals of the control), or use standard COM techniques like window procedure subclassing.</p>
<p>QAxWidget also inherits most of its ActiveX-related functionality from <a href="qaxbase.html">QAxBase</a>, notably <a href="qaxbase.html#dynamicCall">dynamicCall</a>() and <a href="qaxbase.html#querySubObject">querySubObject</a>().</p>
<p><b>Warning:</b> You can subclass QAxWidget, but you cannot use the <tt>Q_OBJECT</tt> macro in the subclass (the generated moc-file will not compile), so you cannot add further signals, slots or properties. This limitation is due to the metaobject information generated in runtime. To work around this problem, aggregate the QAxWidget as a member of the <a href="qobject.html">QObject</a> subclass.</p>
</div>
<p><b>See also </b><a href="qaxbase.html">QAxBase</a>, <a href="qaxobject.html">QAxObject</a>, <a href="qaxscript.html">QAxScript</a>, and <a href="activeqt.html#activeqt-framework">ActiveQt Framework</a>.</p>
<!-- @@@QAxWidget -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QAxWidget[overload1]$$$QAxWidgetQWidget*Qt::WindowFlags -->
<h3 class="fn"><a name="QAxWidget"></a>QAxWidget::<span class="name">QAxWidget</span> ( <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>parent</i> = 0, <span class="type"><a href="qt.html#WindowType-enum">Qt::WindowFlags</a></span> <i>f</i> = 0 )</h3>
<p>Creates an empty <a href="qaxwidget.html">QAxWidget</a> widget and propagates <i>parent</i> and <i>f</i> to the <a href="qwidget.html">QWidget</a> constructor. To initialize a control, call <a href="qaxbase.html#control-prop">setControl</a>().</p>
<!-- @@@QAxWidget -->
<!-- $$$QAxWidget$$$QAxWidgetconstQString&QWidget*Qt::WindowFlags -->
<h3 class="fn"><a name="QAxWidget-2"></a>QAxWidget::<span class="name">QAxWidget</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>c</i>, <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>parent</i> = 0, <span class="type"><a href="qt.html#WindowType-enum">Qt::WindowFlags</a></span> <i>f</i> = 0 )</h3>
<p>Creates an <a href="qaxwidget.html">QAxWidget</a> widget and initializes the ActiveX control <i>c</i>. <i>parent</i> and <i>f</i> are propagated to the <a href="qwidget.html">QWidget</a> contructor.</p>
<p><b>See also </b><a href="qaxbase.html#control-prop">setControl</a>().</p>
<!-- @@@QAxWidget -->
<!-- $$$QAxWidget$$$QAxWidgetIUnknown*QWidget*Qt::WindowFlags -->
<h3 class="fn"><a name="QAxWidget-3"></a>QAxWidget::<span class="name">QAxWidget</span> ( <span class="type">IUnknown</span> * <i>iface</i>, <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>parent</i> = 0, <span class="type"><a href="qt.html#WindowType-enum">Qt::WindowFlags</a></span> <i>f</i> = 0 )</h3>
<p>Creates a <a href="qaxwidget.html">QAxWidget</a> that wraps the COM object referenced by <i>iface</i>. <i>parent</i> and <i>f</i> are propagated to the <a href="qwidget.html">QWidget</a> contructor.</p>
<!-- @@@QAxWidget -->
<!-- $$$~QAxWidget[overload1]$$$~QAxWidget -->
<h3 class="fn"><a name="dtor.QAxWidget"></a>QAxWidget::<span class="name">~QAxWidget</span> ()</h3>
<p>Shuts down the ActiveX control and destroys the <a href="qaxwidget.html">QAxWidget</a> widget, cleaning up all allocated resources.</p>
<p><b>See also </b><a href="qaxwidget.html#clear">clear</a>().</p>
<!-- @@@~QAxWidget -->
<!-- $$$changeEvent[overload1]$$$changeEventQEvent* -->
<h3 class="fn"><a name="changeEvent"></a><span class="type">void</span> QAxWidget::<span class="name">changeEvent</span> ( <span class="type"><a href="qevent.html">QEvent</a></span> * <i>e</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#changeEvent">QWidget::changeEvent</a>().</p>
<!-- @@@changeEvent -->
<!-- $$$clear[overload1]$$$clear -->
<h3 class="fn"><a name="clear"></a><span class="type">void</span> QAxWidget::<span class="name">clear</span> ()<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qaxbase.html#clear">QAxBase::clear</a>().</p>
<p>Shuts down the ActiveX control.</p>
<!-- @@@clear -->
<!-- $$$connectNotify[overload1]$$$connectNotifyconstchar* -->
<h3 class="fn"><a name="connectNotify"></a><span class="type">void</span> QAxWidget::<span class="name">connectNotify</span> ( const <span class="type">char</span> * <i>signal</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qobject.html#connectNotify">QObject::connectNotify</a>().</p>
<!-- @@@connectNotify -->
<!-- $$$createAggregate[overload1]$$$createAggregate -->
<h3 class="fn"><a name="createAggregate"></a><span class="type"><a href="qaxaggregated.html">QAxAggregated</a></span> * QAxWidget::<span class="name">createAggregate</span> ()<tt> [virtual]</tt></h3>
<p>Reimplement this function when you want to implement additional COM interfaces for the client site of the ActiveX control, or when you want to provide alternative implementations of COM interfaces. Return a new object of a <a href="qaxaggregated.html">QAxAggregated</a> subclass.</p>
<p>The default implementation returns the null pointer.</p>
<!-- @@@createAggregate -->
<!-- $$$createHostWindow[overload1]$$$createHostWindowbool -->
<h3 class="fn"><a name="createHostWindow"></a><span class="type">bool</span> QAxWidget::<span class="name">createHostWindow</span> ( <span class="type">bool</span> <i>initialized</i> )<tt> [virtual protected]</tt></h3>
<p>Creates the client site for the ActiveX control, and returns true if the control could be embedded successfully, otherwise returns false. If <i>initialized</i> is true the control has already been initialized.</p>
<p>This function is called by <a href="qaxwidget.html#initialize">initialize</a>(). If you reimplement initialize to customize the actual control instantiation, call this function in your reimplementation to have the control embedded by the default client side. Creates the client site for the ActiveX control, and returns true if the control could be embedded successfully, otherwise returns false.</p>
<!-- @@@createHostWindow -->
<!-- $$$createHostWindow$$$createHostWindowboolconstQByteArray& -->
<h3 class="fn"><a name="createHostWindow-2"></a><span class="type">bool</span> QAxWidget::<span class="name">createHostWindow</span> ( <span class="type">bool</span> <i>initialized</i>, const <span class="type"><a href="qbytearray.html">QByteArray</a></span> &amp; <i>data</i> )<tt> [protected]</tt></h3>
<p>Creates the client site for the ActiveX control, and returns true if the control could be embedded successfully, otherwise returns false. If <i>initialized</i> is false the control will be initialized using the <i>data</i>. The control will be initialized through either IPersistStreamInit or IPersistStorage interface.</p>
<p>If the control needs to be initialized using custom data, call this function in your reimplementation of <a href="qaxwidget.html#initialize">initialize</a>(). This function is not called by the default implementation of <a href="qaxwidget.html#initialize">initialize</a>().</p>
<p>This function was introduced in Qt 4.4.</p>
<!-- @@@createHostWindow -->
<!-- $$$doVerb[overload1]$$$doVerbconstQString& -->
<h3 class="fn"><a name="doVerb"></a><span class="type">bool</span> QAxWidget::<span class="name">doVerb</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>verb</i> )</h3>
<p>Requests the ActiveX control to perform the action <i>verb</i>. The possible verbs are returned by <a href="qaxbase.html#verbs">verbs</a>().</p>
<p>The function returns true if the object could perform the action, otherwise returns false.</p>
<p>This function was introduced in Qt 4.1.</p>
<!-- @@@doVerb -->
<!-- $$$initialize[overload1]$$$initializeIUnknown** -->
<h3 class="fn"><a name="initialize"></a><span class="type">bool</span> QAxWidget::<span class="name">initialize</span> ( <span class="type">IUnknown</span> ** <i>ptr</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qaxbase.html#initialize">QAxBase::initialize</a>().</p>
<p>Calls QAxBase::initialize(<i>ptr</i>), and embeds the control in this widget by calling createHostWindow(false) if successful.</p>
<p>To initialize the control before it is activated, reimplement this function and add your initialization code before you call createHostWindow(true).</p>
<p>This function was introduced in Qt 4.2.</p>
<!-- @@@initialize -->
<!-- $$$minimumSizeHint[overload1]$$$minimumSizeHint -->
<h3 class="fn"><a name="minimumSizeHint"></a><span class="type"><a href="qsize.html">QSize</a></span> QAxWidget::<span class="name">minimumSizeHint</span> () const<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#minimumSizeHint-prop">QWidget::minimumSizeHint</a>().</p>
<!-- @@@minimumSizeHint -->
<!-- $$$resizeEvent[overload1]$$$resizeEventQResizeEvent* -->
<h3 class="fn"><a name="resizeEvent"></a><span class="type">void</span> QAxWidget::<span class="name">resizeEvent</span> ( <span class="type"><a href="qresizeevent.html">QResizeEvent</a></span> * )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#resizeEvent">QWidget::resizeEvent</a>().</p>
<!-- @@@resizeEvent -->
<!-- $$$sizeHint[overload1]$$$sizeHint -->
<h3 class="fn"><a name="sizeHint"></a><span class="type"><a href="qsize.html">QSize</a></span> QAxWidget::<span class="name">sizeHint</span> () const<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#sizeHint-prop">QWidget::sizeHint</a>().</p>
<!-- @@@sizeHint -->
<!-- $$$translateKeyEvent[overload1]$$$translateKeyEventintint -->
<h3 class="fn"><a name="translateKeyEvent"></a><span class="type">bool</span> QAxWidget::<span class="name">translateKeyEvent</span> ( <span class="type">int</span> <i>message</i>, <span class="type">int</span> <i>keycode</i> ) const<tt> [virtual protected]</tt></h3>
<p>Reimplement this function to pass certain key events to the ActiveX control. <i>message</i> is the Window message identifier specifying the message type (ie. WM_KEYDOWN), and <i>keycode</i> is the virtual keycode (ie. VK_TAB).</p>
<p>If the function returns true the key event is passed on to the ActiveX control, which then either processes the event or passes the event on to Qt.</p>
<p>If the function returns false the processing of the key event is ignored by <a href="activeqt.html#activeqt">ActiveQt</a>, ie. the ActiveX control might handle it or not.</p>
<p>The default implementation returns true for the following cases:</p>
<table class="generic">
<thead><tr class="qt-style"><th >WM_SYSKEYDOWN</th><th >WM_SYSKEYUP</th><th >WM_KEYDOWN</th></tr></thead>
<tr valign="top" class="odd"><td >All keycodes</td><td >VK_MENU</td><td >VK_TAB, VK_DELETE and all non-arrow-keys in combination with VK_SHIFT, VK_CONTROL or VK_MENU</td></tr>
</table>
<p>This table is the result of experimenting with popular ActiveX controls, ie. Internet Explorer and Microsoft Office applications, but for some controls it might require modification.</p>
<!-- @@@translateKeyEvent -->
</div>
      </div>
    </div>
    </div> 
    <div class="ft">
      <span></span>
    </div>
  </div> 
  <div class="footer">
    <p>
      <acronym title="Copyright">&copy;</acronym> 2015 The Qt Company Ltd.
      Documentation contributions included herein are the copyrights of
      their respective owners.</p>
    <br />
    <p>
      The documentation provided herein is licensed under the terms of the
      <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation
      License version 1.3</a> as published by the Free Software Foundation.</p>
    <p>
      Documentation sources may be obtained from <a href="http://www.qt-project.org">
      www.qt-project.org</a>.</p>
    <br />
    <p>
      Qt and respective logos are trademarks of The Qt Company Ltd 
      in Finland and/or other countries worldwide. All other trademarks are property
      of their respective owners. <a title="Privacy Policy"
      href="http://en.gitorious.org/privacy_policy/">Privacy Policy</a></p>
  </div>

  <script src="scripts/functions.js" type="text/javascript"></script>
</body>
</html>