Sophie

Sophie

distrib > Mageia > 7 > i586 > by-pkgid > 1dd17e0d683ef79b4bb6872bbf359d7f > files > 4437

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" />
<!-- q3action.cpp -->
  <title>Qt 4.8: Q3Action 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>Qt3SupportLight</li>
<li>Q3Action</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="#properties">Properties</a></li>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#public-slots">Public Slots</a></li>
<li class="level1"><a href="#signals">Signals</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">Q3Action Class Reference</h1>
<!-- $$$Q3Action-brief -->
<p>The Q3Action class provides an abstract user interface action that can appear both in menus and tool bars. <a href="#details">More...</a></p>
<!-- @@@Q3Action -->
<pre class="cpp"> <span class="preprocessor">#include &lt;Q3Action&gt;</span></pre><p><b>This class is part of the Qt 3 support library.</b> It is provided to keep old source code working. We strongly advise against using it in new code. See <a href="porting4.html#qaction">Porting to Qt 4</a> for more information.</p>
<p><b>Inherits: </b><a href="qobject.html">QObject</a>.</p>
<p><b>Inherited by: </b><a href="q3actiongroup.html">Q3ActionGroup</a>.</p>
<ul>
<li><a href="q3action-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="properties"></a>
<h2>Properties</h2>
<table class="propsummary">
<tr><td class="topAlign"><ul>
<li class="fn"><b><a href="q3action.html#accel-prop">accel</a></b> : QKeySequence</li>
<li class="fn"><b><a href="q3action.html#enabled-prop">enabled</a></b> : bool</li>
<li class="fn"><b><a href="q3action.html#iconSet-prop">iconSet</a></b> : QIcon</li>
<li class="fn"><b><a href="q3action.html#menuText-prop">menuText</a></b> : QString</li>
<li class="fn"><b><a href="q3action.html#on-prop">on</a></b> : bool</li>
<li class="fn"><b><a href="q3action.html#statusTip-prop">statusTip</a></b> : QString</li>
</ul></td><td class="topAlign"><ul>
<li class="fn"><b><a href="q3action.html#text-prop">text</a></b> : QString</li>
<li class="fn"><b><a href="q3action.html#toggleAction-prop">toggleAction</a></b> : bool</li>
<li class="fn"><b><a href="q3action.html#toolTip-prop">toolTip</a></b> : QString</li>
<li class="fn"><b><a href="q3action.html#visible-prop">visible</a></b> : bool</li>
<li class="fn"><b><a href="q3action.html#whatsThis-prop">whatsThis</a></b> : QString</li>
</ul>
</td></tr>
</table>
<ul>
<li class="fn">1 property inherited from <a href="qobject.html#properties">QObject</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="q3action.html#Q3Action">Q3Action</a></b> ( QObject * <i>parent</i>, const char * <i>name</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="q3action.html#Q3Action-2">Q3Action</a></b> ( const QString &amp; <i>menuText</i>, QKeySequence <i>accel</i>, QObject * <i>parent</i>, const char * <i>name</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="q3action.html#Q3Action-3">Q3Action</a></b> ( const QIcon &amp; <i>icon</i>, const QString &amp; <i>menuText</i>, QKeySequence <i>accel</i>, QObject * <i>parent</i>, const char * <i>name</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="q3action.html#Q3Action-4">Q3Action</a></b> ( const QString &amp; <i>text</i>, const QIcon &amp; <i>icon</i>, const QString &amp; <i>menuText</i>, QKeySequence <i>accel</i>, QObject * <i>parent</i>, const char * <i>name</i> = 0, bool <i>toggle</i> = false )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="q3action.html#Q3Action-5">Q3Action</a></b> ( const QString &amp; <i>text</i>, const QString &amp; <i>menuText</i>, QKeySequence <i>accel</i>, QObject * <i>parent</i>, const char * <i>name</i> = 0, bool <i>toggle</i> = false )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="q3action.html#Q3Action-6">Q3Action</a></b> ( QObject * <i>parent</i>, const char * <i>name</i>, bool <i>toggle</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="q3action.html#dtor.Q3Action">~Q3Action</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QKeySequence </td><td class="memItemRight bottomAlign"><b><a href="q3action.html#accel-prop">accel</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="q3action.html#addTo">addTo</a></b> ( QWidget * <i>w</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QIcon </td><td class="memItemRight bottomAlign"><b><a href="q3action.html#iconSet-prop">iconSet</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3action.html#enabled-prop">isEnabled</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3action.html#on-prop">isOn</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3action.html#toggleAction-prop">isToggleAction</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3action.html#visible-prop">isVisible</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="q3action.html#menuText-prop">menuText</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="q3action.html#removeFrom">removeFrom</a></b> ( QWidget * <i>w</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3action.html#accel-prop">setAccel</a></b> ( const QKeySequence &amp; <i>key</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3action.html#iconSet-prop">setIconSet</a></b> ( const QIcon &amp; )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3action.html#menuText-prop">setMenuText</a></b> ( const QString &amp; )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3action.html#statusTip-prop">setStatusTip</a></b> ( const QString &amp; )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3action.html#text-prop">setText</a></b> ( const QString &amp; )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3action.html#toggleAction-prop">setToggleAction</a></b> ( bool )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3action.html#toolTip-prop">setToolTip</a></b> ( const QString &amp; )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3action.html#whatsThis-prop">setWhatsThis</a></b> ( const QString &amp; )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="q3action.html#statusTip-prop">statusTip</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="q3action.html#text-prop">text</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="q3action.html#toolTip-prop">toolTip</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="q3action.html#whatsThis-prop">whatsThis</a></b> () const</td></tr>
</table>
<ul>
<li class="fn">29 public functions inherited from <a href="qobject.html#public-functions">QObject</a></li>
</ul>
<a name="public-slots"></a>
<h2>Public Slots</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3action.html#activate">activate</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3action.html#setDisabled">setDisabled</a></b> ( bool <i>disable</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3action.html#enabled-prop">setEnabled</a></b> ( bool )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3action.html#on-prop">setOn</a></b> ( bool )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3action.html#visible-prop">setVisible</a></b> ( bool )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3action.html#toggle">toggle</a></b> ()</td></tr>
</table>
<ul>
<li class="fn">1 public slot inherited from <a href="qobject.html#public-slots">QObject</a></li>
</ul>
<a name="signals"></a>
<h2>Signals</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3action.html#activated">activated</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3action.html#toggled">toggled</a></b> ( bool <i>on</i> )</td></tr>
</table>
<ul>
<li class="fn">1 signal inherited from <a href="qobject.html#signals">QObject</a></li>
</ul>
<a name="protected-functions"></a>
<h2>Protected Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3action.html#addedTo">addedTo</a></b> ( QWidget * <i>actionWidget</i>, QWidget * <i>container</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3action.html#addedTo-2">addedTo</a></b> ( int <i>index</i>, Q3PopupMenu * <i>menu</i> )</td></tr>
</table>
<ul>
<li class="fn">8 protected functions inherited from <a href="qobject.html#protected-functions">QObject</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li class="fn">7 static public members inherited from <a href="qobject.html#static-public-members">QObject</a></li>
</ul>
<a name="details"></a>
<!-- $$$Q3Action-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The Q3Action class provides an abstract user interface action that can appear both in menus and tool bars.</p>
<p>In GUI applications many commands can be invoked via a menu option, a toolbar button and a keyboard accelerator. Since the same action must be performed regardless of how the action was invoked, and since the menu and toolbar should be kept in sync, it is useful to represent a command as an <i>action</i>. An action can be added to a menu and a toolbar and will automatically keep them in sync. For example, if the user presses a Bold toolbar button the Bold menu item will automatically be checked.</p>
<p>A Q3Action may contain an icon, a menu text, an accelerator, a status text, a &quot;What's This?&quot; text and a tool tip. Most of these can be set in the constructor. They can also be set independently with <a href="q3action.html#iconSet-prop">setIconSet</a>(), <a href="q3action.html#text-prop">setText</a>(), <a href="q3action.html#menuText-prop">setMenuText</a>(), <a href="q3action.html#toolTip-prop">setToolTip</a>(), <a href="q3action.html#statusTip-prop">setStatusTip</a>(), <a href="q3action.html#whatsThis-prop">setWhatsThis</a>() and <a href="q3action.html#accel-prop">setAccel</a>().</p>
<p>An action may be a toggle action e.g&#x2e; a Bold toolbar button, or a command action, e.g&#x2e; 'Open File' to invoke an open file dialog. Toggle actions emit the <a href="q3action.html#toggled">toggled</a>() signal when their state changes. Both command and toggle actions emit the <a href="q3action.html#activated">activated</a>() signal when they are invoked. Use <a href="q3action.html#toggleAction-prop">setToggleAction</a>() to set an action's toggled status. To see if an action is a toggle action use <a href="q3action.html#toggleAction-prop">isToggleAction</a>(). A toggle action may be &quot;on&quot;, <a href="q3action.html#on-prop">isOn</a>() returns true, or &quot;off&quot;, <a href="q3action.html#on-prop">isOn</a>() returns false.</p>
<p>Actions are added to widgets (menus or toolbars) using <a href="q3action.html#addTo">addTo</a>(), and removed using <a href="q3action.html#removeFrom">removeFrom</a>(). Note that when using <a href="q3toolbar.html">Q3ToolBar</a> and <a href="q3popupmenu.html">Q3PopupMenu</a>, their actions must be Q3Actions.</p>
<p>Once a Q3Action has been created it should be added to the relevant menu and toolbar and then connected to the slot which will perform the action.</p>
<p>We recommend that actions are created as children of the window that they are used in. In most cases actions will be children of the application's main window.</p>
<p>To prevent recursion, don't create an action as a child of a widget that the action is later added to.</p>
</div>
<!-- @@@Q3Action -->
<div class="prop">
<h2>Property Documentation</h2>
<!-- $$$accel-prop$$$accel$$$setAccelconstQKeySequence& -->
<h3 class="fn"><a name="accel-prop"></a><span class="name">accel</span> : <span class="type"><a href="qkeysequence.html">QKeySequence</a></span></h3>
<p>This property holds the action's accelerator key.</p>
<p>The keycodes can be found in <a href="qt.html#Key-enum">Qt::Key</a> and <a href="qt.html#Modifier-enum">Qt::Modifier</a>. There is no default accelerator key.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QKeySequence </td><td class="memItemRight bottomAlign"><span class="name"><b>accel</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> virtual void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAccel</b></span> ( const QKeySequence &amp; <i>key</i> )</td></tr>
</table>
<!-- @@@accel -->
<!-- $$$enabled-prop$$$isEnabled$$$setEnabledbool -->
<h3 class="fn"><a name="enabled-prop"></a><span class="name">enabled</span> : <span class="type">bool</span></h3>
<p>This property holds whether the action is enabled.</p>
<p>Disabled actions can't be chosen by the user. They don't disappear from the menu/tool bar but are displayed in a way which indicates that they are unavailable, e.g&#x2e; they might be displayed grayed out.</p>
<p>What's this? help on disabled actions is still available provided the <a href="q3action.html#whatsThis-prop">Q3Action::whatsThis</a> property is set.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>isEnabled</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> virtual void </td><td class="memItemRight bottomAlign"><span class="name"><b>setEnabled</b></span> ( bool )</td></tr>
</table>
<!-- @@@enabled -->
<!-- $$$iconSet-prop$$$iconSet$$$setIconSetconstQIcon& -->
<h3 class="fn"><a name="iconSet-prop"></a><span class="name">iconSet</span> : <span class="type"><a href="qicon.html">QIcon</a></span></h3>
<p>This property holds the action's icon.</p>
<p>The icon is used as the tool button icon and in the menu to the left of the menu text. There is no default icon.</p>
<p>If a null icon (<a href="qicon.html#isNull">QIcon::isNull</a>() is passed into this function, the icon of the action is cleared.</p>
<p>(See the action/toggleaction/toggleaction.cpp example.)</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QIcon </td><td class="memItemRight bottomAlign"><span class="name"><b>iconSet</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> virtual void </td><td class="memItemRight bottomAlign"><span class="name"><b>setIconSet</b></span> ( const QIcon &amp; )</td></tr>
</table>
<!-- @@@iconSet -->
<!-- $$$menuText-prop$$$menuText$$$setMenuTextconstQString& -->
<h3 class="fn"><a name="menuText-prop"></a><span class="name">menuText</span> : <span class="type"><a href="qstring.html">QString</a></span></h3>
<p>This property holds the action's menu text.</p>
<p>If the action is added to a menu the menu option will consist of the icon (if there is one), the menu text and the accelerator (if there is one). If the menu text is not explicitly set in the constructor or by using setMenuText() the action's description text will be used as the menu text. There is no default menu text.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QString </td><td class="memItemRight bottomAlign"><span class="name"><b>menuText</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> virtual void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMenuText</b></span> ( const QString &amp; )</td></tr>
</table>
<p><b>See also </b><a href="q3action.html#text-prop">text</a>.</p>
<!-- @@@menuText -->
<!-- $$$on-prop$$$isOn$$$setOnbool -->
<h3 class="fn"><a name="on-prop"></a><span class="name">on</span> : <span class="type">bool</span></h3>
<p>This property holds whether a toggle action is on.</p>
<p>This property is always on (true) for command actions and <a href="q3actiongroup.html" class="compat">Q3ActionGroup</a>s; setOn() has no effect on them. For action's where <a href="q3action.html#toggleAction-prop">isToggleAction</a>() is true, this property's default value is off (false).</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>isOn</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> virtual void </td><td class="memItemRight bottomAlign"><span class="name"><b>setOn</b></span> ( bool )</td></tr>
</table>
<p><b>See also </b><a href="q3action.html#toggleAction-prop">toggleAction</a>.</p>
<!-- @@@on -->
<!-- $$$statusTip-prop$$$statusTip$$$setStatusTipconstQString& -->
<h3 class="fn"><a name="statusTip-prop"></a><span class="name">statusTip</span> : <span class="type"><a href="qstring.html">QString</a></span></h3>
<p>This property holds the action's status tip.</p>
<p>The statusTip is displayed on all status bars that this action's top-level parent widget provides.</p>
<p>If no status tip is defined, the action uses the tool tip text.</p>
<p>There is no default statusTip text.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QString </td><td class="memItemRight bottomAlign"><span class="name"><b>statusTip</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> virtual void </td><td class="memItemRight bottomAlign"><span class="name"><b>setStatusTip</b></span> ( const QString &amp; )</td></tr>
</table>
<p><b>See also </b><a href="q3action.html#toolTip-prop">setToolTip</a>().</p>
<!-- @@@statusTip -->
<!-- $$$text-prop$$$text$$$setTextconstQString& -->
<h3 class="fn"><a name="text-prop"></a><span class="name">text</span> : <span class="type"><a href="qstring.html">QString</a></span></h3>
<p>This property holds the action's descriptive text.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QString </td><td class="memItemRight bottomAlign"><span class="name"><b>text</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> virtual void </td><td class="memItemRight bottomAlign"><span class="name"><b>setText</b></span> ( const QString &amp; )</td></tr>
</table>
<p><b>See also </b><a href="q3action.html#menuText-prop">setMenuText</a>(), <a href="q3action.html#toolTip-prop">setToolTip</a>(), and <a href="q3action.html#statusTip-prop">setStatusTip</a>().</p>
<!-- @@@text -->
<!-- $$$toggleAction-prop$$$isToggleAction$$$setToggleActionbool -->
<h3 class="fn"><a name="toggleAction-prop"></a><span class="name">toggleAction</span> : <span class="type">bool</span></h3>
<p>This property holds whether the action is a toggle action.</p>
<p>A toggle action is one which has an on/off state. For example a Bold toolbar button is either on or off. An action which is not a toggle action is a command action; a command action is simply executed, e.g&#x2e; file save. This property's default is false.</p>
<p>In some situations, the state of one toggle action should depend on the state of others. For example, &quot;Left Align&quot;, &quot;Center&quot; and &quot;Right Align&quot; toggle actions are mutually exclusive. To achieve exclusive toggling, add the relevant toggle actions to a <a href="q3actiongroup.html" class="compat">Q3ActionGroup</a> with the <a href="q3actiongroup.html#exclusive-prop">Q3ActionGroup::exclusive</a> property set to true.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>isToggleAction</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> virtual void </td><td class="memItemRight bottomAlign"><span class="name"><b>setToggleAction</b></span> ( bool )</td></tr>
</table>
<!-- @@@toggleAction -->
<!-- $$$toolTip-prop$$$toolTip$$$setToolTipconstQString& -->
<h3 class="fn"><a name="toolTip-prop"></a><span class="name">toolTip</span> : <span class="type"><a href="qstring.html">QString</a></span></h3>
<p>This property holds the action's tool tip.</p>
<p>This text is used for the tool tip. If no status tip has been set the tool tip will be used for the status tip.</p>
<p>If no tool tip is specified the action's text is used, and if that hasn't been specified the description text is used as the tool tip text.</p>
<p>There is no default tool tip text.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QString </td><td class="memItemRight bottomAlign"><span class="name"><b>toolTip</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> virtual void </td><td class="memItemRight bottomAlign"><span class="name"><b>setToolTip</b></span> ( const QString &amp; )</td></tr>
</table>
<p><b>See also </b><a href="q3action.html#statusTip-prop">setStatusTip</a>() and <a href="q3action.html#accel-prop">setAccel</a>().</p>
<!-- @@@toolTip -->
<!-- $$$visible-prop$$$isVisible$$$setVisiblebool -->
<h3 class="fn"><a name="visible-prop"></a><span class="name">visible</span> : <span class="type">bool</span></h3>
<p>This property holds whether the action can be seen (e.g. in menus and toolbars).</p>
<p>If <i>visible</i> is true the action can be seen (e.g&#x2e; in menus and toolbars) and chosen by the user; if <i>visible</i> is false the action cannot be seen or chosen by the user.</p>
<p>Actions which are not visible are <i>not</i> grayed out; they do not appear at all.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>isVisible</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> virtual void </td><td class="memItemRight bottomAlign"><span class="name"><b>setVisible</b></span> ( bool )</td></tr>
</table>
<!-- @@@visible -->
<!-- $$$whatsThis-prop$$$whatsThis$$$setWhatsThisconstQString& -->
<h3 class="fn"><a name="whatsThis-prop"></a><span class="name">whatsThis</span> : <span class="type"><a href="qstring.html">QString</a></span></h3>
<p>This property holds the action's "What's This?" help text.</p>
<p>The whats this text is used to provide a brief description of the action. The text may contain rich text (HTML-like tags -- see <a href="porting4.html#qstylesheet">QStyleSheet</a> for the list of supported tags). There is no default &quot;What's This?&quot; text.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QString </td><td class="memItemRight bottomAlign"><span class="name"><b>whatsThis</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> virtual void </td><td class="memItemRight bottomAlign"><span class="name"><b>setWhatsThis</b></span> ( const QString &amp; )</td></tr>
</table>
<p><b>See also </b><a href="qwhatsthis.html">QWhatsThis</a>.</p>
<!-- @@@whatsThis -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$Q3Action[overload1]$$$Q3ActionQObject*constchar* -->
<h3 class="fn"><a name="Q3Action"></a>Q3Action::<span class="name">Q3Action</span> ( <span class="type"><a href="qobject.html">QObject</a></span> * <i>parent</i>, const <span class="type">char</span> * <i>name</i> = 0 )</h3>
<p>Constructs an action called <i>name</i> with parent <i>parent</i>.</p>
<p>If <i>parent</i> is a <a href="q3actiongroup.html" class="compat">Q3ActionGroup</a>, the new action inserts itself into <i>parent</i>.</p>
<p>For accelerators and status tips to work, <i>parent</i> must either be a widget, or an action group whose parent is a widget.</p>
<p><b>Warning:</b> To prevent recursion, don't create an action as a child of a widget that the action is later added to.</p>
<!-- @@@Q3Action -->
<!-- $$$Q3Action$$$Q3ActionconstQString&QKeySequenceQObject*constchar* -->
<h3 class="fn"><a name="Q3Action-2"></a>Q3Action::<span class="name">Q3Action</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>menuText</i>, <span class="type"><a href="qkeysequence.html">QKeySequence</a></span> <i>accel</i>, <span class="type"><a href="qobject.html">QObject</a></span> * <i>parent</i>, const <span class="type">char</span> * <i>name</i> = 0 )</h3>
<p>This constructor results in an icon-less action with the menu text <i>menuText</i> and keyboard accelerator <i>accel</i>. It is a child of <i>parent</i> and called <i>name</i>.</p>
<p>If <i>parent</i> is a <a href="q3actiongroup.html" class="compat">Q3ActionGroup</a>, the action automatically becomes a member of it.</p>
<p>For accelerators and status tips to work, <i>parent</i> must either be a widget, or an action group whose parent is a widget.</p>
<p>The action uses a stripped version of <i>menuText</i> (e.g&#x2e; &quot;&amp;Menu Option..&#x2e;&quot; becomes &quot;Menu Option&quot;) as descriptive text for tool buttons. You can override this by setting a specific description with <a href="q3action.html#text-prop">setText</a>(). The same text and <i>accel</i> will be used for tool tips and status tips unless you provide text for these using <a href="q3action.html#toolTip-prop">setToolTip</a>() and <a href="q3action.html#statusTip-prop">setStatusTip</a>().</p>
<p>Call setToggleAction(true) to make the action a toggle action.</p>
<p><b>Warning:</b> To prevent recursion, don't create an action as a child of a widget that the action is later added to.</p>
<!-- @@@Q3Action -->
<!-- $$$Q3Action$$$Q3ActionconstQIcon&constQString&QKeySequenceQObject*constchar* -->
<h3 class="fn"><a name="Q3Action-3"></a>Q3Action::<span class="name">Q3Action</span> ( const <span class="type"><a href="qicon.html">QIcon</a></span> &amp; <i>icon</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>menuText</i>, <span class="type"><a href="qkeysequence.html">QKeySequence</a></span> <i>accel</i>, <span class="type"><a href="qobject.html">QObject</a></span> * <i>parent</i>, const <span class="type">char</span> * <i>name</i> = 0 )</h3>
<p>This constructor creates an action with the following properties: the icon or icon <i>icon</i>, the menu text <i>menuText</i> and keyboard accelerator <i>accel</i>. It is a child of <i>parent</i> and called <i>name</i>.</p>
<p>If <i>parent</i> is a <a href="q3actiongroup.html" class="compat">Q3ActionGroup</a>, the action automatically becomes a member of it.</p>
<p>For accelerators and status tips to work, <i>parent</i> must either be a widget, or an action group whose parent is a widget.</p>
<p>The action uses a stripped version of <i>menuText</i> (e.g&#x2e; &quot;&amp;Menu Option..&#x2e;&quot; becomes &quot;Menu Option&quot;) as descriptive text for tool buttons. You can override this by setting a specific description with <a href="q3action.html#text-prop">setText</a>(). The same text and <i>accel</i> will be used for tool tips and status tips unless you provide text for these using <a href="q3action.html#toolTip-prop">setToolTip</a>() and <a href="q3action.html#statusTip-prop">setStatusTip</a>().</p>
<p>Call setToggleAction(true) to make the action a toggle action.</p>
<p><b>Warning:</b> To prevent recursion, don't create an action as a child of a widget that the action is later added to.</p>
<!-- @@@Q3Action -->
<!-- $$$Q3Action$$$Q3ActionconstQString&constQIcon&constQString&QKeySequenceQObject*constchar*bool -->
<h3 class="fn"><a name="Q3Action-4"></a>Q3Action::<span class="name">Q3Action</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>text</i>, const <span class="type"><a href="qicon.html">QIcon</a></span> &amp; <i>icon</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>menuText</i>, <span class="type"><a href="qkeysequence.html">QKeySequence</a></span> <i>accel</i>, <span class="type"><a href="qobject.html">QObject</a></span> * <i>parent</i>, const <span class="type">char</span> * <i>name</i> = 0, <span class="type">bool</span> <i>toggle</i> = false )</h3>
<p>This constructor creates an action with the following properties: the description <i>text</i>, the icon or icon <i>icon</i>, the menu text <i>menuText</i> and keyboard accelerator <i>accel</i>. It is a child of <i>parent</i> and called <i>name</i>. If <i>toggle</i> is true the action will be a toggle action, otherwise it will be a command action.</p>
<p>If <i>parent</i> is a <a href="q3actiongroup.html" class="compat">Q3ActionGroup</a>, the action automatically becomes a member of it.</p>
<p>For accelerators and status tips to work, <i>parent</i> must either be a widget, or an action group whose parent is a widget.</p>
<p>The <i>text</i> and <i>accel</i> will be used for tool tips and status tips unless you provide specific text for these using <a href="q3action.html#toolTip-prop">setToolTip</a>() and <a href="q3action.html#statusTip-prop">setStatusTip</a>().</p>
<!-- @@@Q3Action -->
<!-- $$$Q3Action$$$Q3ActionconstQString&constQString&QKeySequenceQObject*constchar*bool -->
<h3 class="fn"><a name="Q3Action-5"></a>Q3Action::<span class="name">Q3Action</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>text</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>menuText</i>, <span class="type"><a href="qkeysequence.html">QKeySequence</a></span> <i>accel</i>, <span class="type"><a href="qobject.html">QObject</a></span> * <i>parent</i>, const <span class="type">char</span> * <i>name</i> = 0, <span class="type">bool</span> <i>toggle</i> = false )</h3>
<p>This constructor results in an icon-less action with the description <i>text</i>, the menu text <i>menuText</i> and the keyboard accelerator <i>accel</i>. Its parent is <i>parent</i> and it is called <i>name</i>. If <i>toggle</i> is true the action will be a toggle action, otherwise it will be a command action.</p>
<p>The action automatically becomes a member of <i>parent</i> if <i>parent</i> is a <a href="q3actiongroup.html" class="compat">Q3ActionGroup</a>.</p>
<p>For accelerators and status tips to work, <i>parent</i> must either be a widget, or an action group whose parent is a widget.</p>
<p>The <i>text</i> and <i>accel</i> will be used for tool tips and status tips unless you provide specific text for these using <a href="q3action.html#toolTip-prop">setToolTip</a>() and <a href="q3action.html#statusTip-prop">setStatusTip</a>().</p>
<!-- @@@Q3Action -->
<!-- $$$Q3Action$$$Q3ActionQObject*constchar*bool -->
<h3 class="fn"><a name="Q3Action-6"></a>Q3Action::<span class="name">Q3Action</span> ( <span class="type"><a href="qobject.html">QObject</a></span> * <i>parent</i>, const <span class="type">char</span> * <i>name</i>, <span class="type">bool</span> <i>toggle</i> )</h3>
<p>Constructs an action called <i>name</i> with parent <i>parent</i>.</p>
<p>If <i>toggle</i> is true the action will be a toggle action, otherwise it will be a command action.</p>
<p>If <i>parent</i> is a <a href="q3actiongroup.html" class="compat">Q3ActionGroup</a>, the new action inserts itself into <i>parent</i>.</p>
<p>For accelerators and status tips to work, <i>parent</i> must either be a widget, or an action group whose parent is a widget.</p>
<!-- @@@Q3Action -->
<!-- $$$~Q3Action[overload1]$$$~Q3Action -->
<h3 class="fn"><a name="dtor.Q3Action"></a>Q3Action::<span class="name">~Q3Action</span> ()</h3>
<p>Destroys the object and frees allocated resources.</p>
<!-- @@@~Q3Action -->
<!-- $$$activate[overload1]$$$activate -->
<h3 class="fn"><a name="activate"></a><span class="type">void</span> Q3Action::<span class="name">activate</span> ()<tt> [slot]</tt></h3>
<p>Activates the action and executes all connected slots. This only works for actions that are not toggle actions.</p>
<p><b>See also </b><a href="q3action.html#toggle">toggle</a>().</p>
<!-- @@@activate -->
<!-- $$$activated[overload1]$$$activated -->
<h3 class="fn"><a name="activated"></a><span class="type">void</span> Q3Action::<span class="name">activated</span> ()<tt> [signal]</tt></h3>
<p>This signal is emitted when an action is activated by the user, e.g&#x2e; when the user clicks a menu option or a toolbar button or presses an action's accelerator key combination.</p>
<p>Connect to this signal for command actions. Connect to the <a href="q3action.html#toggled">toggled</a>() signal for toggle actions.</p>
<!-- @@@activated -->
<!-- $$$addTo[overload1]$$$addToQWidget* -->
<h3 class="fn"><a name="addTo"></a><span class="type">bool</span> Q3Action::<span class="name">addTo</span> ( <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>w</i> )<tt> [virtual]</tt></h3>
<p>Adds this action to widget <i>w</i>.</p>
<p>Currently actions may be added to <a href="q3toolbar.html" class="compat">Q3ToolBar</a> and <a href="q3popupmenu.html" class="compat">Q3PopupMenu</a> widgets.</p>
<p>An action added to a tool bar is automatically displayed as a tool button; an action added to a pop up menu appears as a menu option.</p>
<p>addTo() returns true if the action was added successfully and false otherwise. (If <i>w</i> is not a <a href="q3toolbar.html" class="compat">Q3ToolBar</a> or <a href="q3popupmenu.html" class="compat">Q3PopupMenu</a> the action will not be added and false will be returned.)</p>
<p><b>See also </b><a href="q3action.html#removeFrom">removeFrom</a>().</p>
<!-- @@@addTo -->
<!-- $$$addedTo[overload1]$$$addedToQWidget*QWidget* -->
<h3 class="fn"><a name="addedTo"></a><span class="type">void</span> Q3Action::<span class="name">addedTo</span> ( <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>actionWidget</i>, <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>container</i> )<tt> [virtual protected]</tt></h3>
<p>This function is called from the <a href="q3action.html#addTo">addTo</a>() function when it has created a widget (<i>actionWidget</i>) for the action in the <i>container</i>.</p>
<!-- @@@addedTo -->
<!-- $$$addedTo$$$addedTointQ3PopupMenu* -->
<h3 class="fn"><a name="addedTo-2"></a><span class="type">void</span> Q3Action::<span class="name">addedTo</span> ( <span class="type">int</span> <i>index</i>, <span class="type"><a href="q3popupmenu.html">Q3PopupMenu</a></span> * <i>menu</i> )<tt> [virtual protected]</tt></h3>
<p>This is an overloaded function.</p>
<p>This function is called from the <a href="q3action.html#addTo">addTo</a>() function when it has created a menu item at the index position <i>index</i> in the popup menu <i>menu</i>.</p>
<!-- @@@addedTo -->
<!-- $$$removeFrom[overload1]$$$removeFromQWidget* -->
<h3 class="fn"><a name="removeFrom"></a><span class="type">bool</span> Q3Action::<span class="name">removeFrom</span> ( <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>w</i> )<tt> [virtual]</tt></h3>
<p>Removes the action from widget <i>w</i>.</p>
<p>Returns true if the action was removed successfully; otherwise returns false.</p>
<p><b>See also </b><a href="q3action.html#addTo">addTo</a>().</p>
<!-- @@@removeFrom -->
<!-- $$$setDisabled[overload1]$$$setDisabledbool -->
<h3 class="fn"><a name="setDisabled"></a><span class="type">void</span> Q3Action::<span class="name">setDisabled</span> ( <span class="type">bool</span> <i>disable</i> )<tt> [slot]</tt></h3>
<p>Disables the action if <i>disable</i> is true; otherwise enables the action.</p>
<p>See the <a href="q3action.html#enabled-prop">enabled</a> documentation for more information.</p>
<!-- @@@setDisabled -->
<!-- $$$toggle[overload1]$$$toggle -->
<h3 class="fn"><a name="toggle"></a><span class="type">void</span> Q3Action::<span class="name">toggle</span> ()<tt> [slot]</tt></h3>
<p>Toggles the state of a toggle action.</p>
<p><b>See also </b><a href="q3action.html#on-prop">on</a>, <a href="q3action.html#activate">activate</a>(), <a href="q3action.html#toggled">toggled</a>(), and <a href="q3action.html#toggleAction-prop">isToggleAction</a>().</p>
<!-- @@@toggle -->
<!-- $$$toggled[overload1]$$$toggledbool -->
<h3 class="fn"><a name="toggled"></a><span class="type">void</span> Q3Action::<span class="name">toggled</span> ( <span class="type">bool</span> <i>on</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when a toggle action changes state; command actions and <a href="q3actiongroup.html" class="compat">Q3ActionGroup</a>s don't emit toggled().</p>
<p>The <i>on</i> argument denotes the new state: If <i>on</i> is true the toggle action is switched on, and if <i>on</i> is false the toggle action is switched off.</p>
<p>To trigger a user command depending on whether a toggle action has been switched on or off connect it to a slot that takes a bool to indicate the state.</p>
<p><b>See also </b><a href="q3action.html#activated">activated</a>(), <a href="q3action.html#toggleAction-prop">setToggleAction</a>(), and <a href="q3action.html#on-prop">setOn</a>().</p>
<!-- @@@toggled -->
</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>