Sophie

Sophie

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

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" />
<!-- q3buttongroup.cpp -->
  <title>Qt 4.8: Q3ButtonGroup 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>Q3ButtonGroup</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="#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">Q3ButtonGroup Class Reference</h1>
<!-- $$$Q3ButtonGroup-brief -->
<p>The Q3ButtonGroup widget organizes <a href="qabstractbutton.html">QAbstractButton</a> widgets in a group. <a href="#details">More...</a></p>
<!-- @@@Q3ButtonGroup -->
<pre class="cpp"> <span class="preprocessor">#include &lt;Q3ButtonGroup&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#qbuttongroup">Porting to Qt 4</a> for more information.</p>
<p><b>Inherits: </b><a href="q3groupbox.html">Q3GroupBox</a>.</p>
<p><b>Inherited by: </b><a href="q3hbuttongroup.html">Q3HButtonGroup</a> and <a href="q3vbuttongroup.html">Q3VButtonGroup</a>.</p>
<ul>
<li><a href="q3buttongroup-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="properties"></a>
<h2>Properties</h2>
<ul>
<li class="fn"><b><a href="q3buttongroup.html#exclusive-prop">exclusive</a></b> : bool</li>
<li class="fn"><b><a href="q3buttongroup.html#radioButtonExclusive-prop">radioButtonExclusive</a></b> : bool</li>
<li class="fn"><b><a href="q3buttongroup.html#selectedId-prop">selectedId</a></b> : int</li>
</ul>
<ul>
<li class="fn">8 properties inherited from <a href="q3groupbox.html#properties">Q3GroupBox</a></li>
<li class="fn">5 properties inherited from <a href="qgroupbox.html#properties">QGroupBox</a></li>
<li class="fn">58 properties inherited from <a href="qwidget.html#properties">QWidget</a></li>
<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="q3buttongroup.html#Q3ButtonGroup">Q3ButtonGroup</a></b> ( QWidget * <i>parent</i> = 0, const char * <i>name</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="q3buttongroup.html#Q3ButtonGroup-2">Q3ButtonGroup</a></b> ( const QString &amp; <i>title</i>, QWidget * <i>parent</i> = 0, const char * <i>name</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="q3buttongroup.html#Q3ButtonGroup-3">Q3ButtonGroup</a></b> ( int <i>strips</i>, Qt::Orientation <i>orientation</i>, QWidget * <i>parent</i> = 0, const char * <i>name</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="q3buttongroup.html#Q3ButtonGroup-4">Q3ButtonGroup</a></b> ( int <i>strips</i>, Qt::Orientation <i>orientation</i>, const QString &amp; <i>title</i>, QWidget * <i>parent</i> = 0, const char * <i>name</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="q3buttongroup.html#dtor.Q3ButtonGroup">~Q3ButtonGroup</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="q3buttongroup.html#count">count</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QAbstractButton * </td><td class="memItemRight bottomAlign"><b><a href="q3buttongroup.html#find">find</a></b> ( int <i>id</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="q3buttongroup.html#id">id</a></b> ( QAbstractButton * <i>button</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="q3buttongroup.html#insert">insert</a></b> ( QAbstractButton * <i>button</i>, int <i>id</i> = -1 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3buttongroup.html#exclusive-prop">isExclusive</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3buttongroup.html#radioButtonExclusive-prop">isRadioButtonExclusive</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3buttongroup.html#remove">remove</a></b> ( QAbstractButton * <i>button</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QAbstractButton * </td><td class="memItemRight bottomAlign"><b><a href="q3buttongroup.html#selected">selected</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="q3buttongroup.html#selectedId-prop">selectedId</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3buttongroup.html#selectedId-prop">setButton</a></b> ( int <i>id</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3buttongroup.html#exclusive-prop">setExclusive</a></b> ( bool )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3buttongroup.html#radioButtonExclusive-prop">setRadioButtonExclusive</a></b> ( bool )</td></tr>
</table>
<ul>
<li class="fn">22 public functions inherited from <a href="q3groupbox.html#public-functions">Q3GroupBox</a></li>
<li class="fn">10 public functions inherited from <a href="qgroupbox.html#public-functions">QGroupBox</a></li>
<li class="fn">221 public functions inherited from <a href="qwidget.html#public-functions">QWidget</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="signals"></a>
<h2>Signals</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3buttongroup.html#clicked">clicked</a></b> ( int <i>id</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3buttongroup.html#pressed">pressed</a></b> ( int <i>id</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3buttongroup.html#released">released</a></b> ( int <i>id</i> )</td></tr>
</table>
<ul>
<li class="fn">2 signals inherited from <a href="qgroupbox.html#signals">QGroupBox</a></li>
<li class="fn">1 signal inherited from <a href="qwidget.html#signals">QWidget</a></li>
<li class="fn">1 signal inherited from <a href="qobject.html#signals">QObject</a></li>
</ul>
<a name="reimplemented-protected-functions"></a>
<h2>Reimplemented Protected Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="q3buttongroup.html#event">event</a></b> ( QEvent * <i>e</i> )</td></tr>
</table>
<ul>
<li class="fn">4 protected functions inherited from <a href="q3groupbox.html#protected-functions">Q3GroupBox</a></li>
<li class="fn">10 protected functions inherited from <a href="qgroupbox.html#protected-functions">QGroupBox</a></li>
<li class="fn">37 protected functions inherited from <a href="qwidget.html#protected-functions">QWidget</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">1 public slot inherited from <a href="qgroupbox.html#public-slots">QGroupBox</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">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">4 protected functions inherited from <a href="q3groupbox.html#protected-functions">Q3GroupBox</a></li>
<li class="fn">10 protected functions inherited from <a href="qgroupbox.html#protected-functions">QGroupBox</a></li>
<li class="fn">37 protected functions inherited from <a href="qwidget.html#protected-functions">QWidget</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>
<li class="fn">1 protected slot inherited from <a href="qwidget.html#protected-slots">QWidget</a></li>
</ul>
<a name="details"></a>
<!-- $$$Q3ButtonGroup-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The Q3ButtonGroup widget organizes <a href="qabstractbutton.html">QAbstractButton</a> widgets in a group.</p>
<p>A button group widget makes it easier to deal with groups of buttons. Each button in a button group has a unique identifier. The button group emits a <a href="q3buttongroup.html#clicked">clicked</a>() signal with this identifier when a button in the group is clicked. This makes a button group particularly useful when you have several similar buttons and want to connect all their <a href="q3buttongroup.html#clicked">clicked</a>() signals to a single slot.</p>
<p>An <a href="q3buttongroup.html#exclusive-prop">exclusive</a> button group switches off all toggle buttons except the one that was clicked. A button group is, by default, non-exclusive. Note that all radio buttons that are inserted into a button group are mutually exclusive even if the button group is non-exclusive. (See <a href="q3buttongroup.html#radioButtonExclusive-prop">setRadioButtonExclusive</a>().)</p>
<p>There are two ways of using a button group:</p>
<ul>
<li>The button group is the parent widget of a number of buttons, i.e&#x2e; the button group is the parent argument in the button constructor. The buttons are assigned identifiers 0, 1, 2, etc., in the order they are created. A Q3ButtonGroup can display a frame and a title because it inherits <a href="q3groupbox.html">Q3GroupBox</a>.</li>
<li>The button group is an invisible widget and the contained buttons have some other parent widget. In this usage, each button must be manually inserted, using <a href="q3buttongroup.html#insert">insert</a>(), into the button group and given an identifier.</li>
</ul>
<p>A button can be removed from the group with <a href="q3buttongroup.html#remove">remove</a>(). A pointer to a button with a given id can be obtained using <a href="q3buttongroup.html#find">find</a>(). The id of a button is available using <a href="q3buttongroup.html#id">id</a>(). A button can be set <i>on</i> with <a href="q3buttongroup.html#selectedId-prop">setButton</a>(). The number of buttons in the group is returned by <a href="q3buttongroup.html#count">count</a>().</p>
</div>
<p><b>See also </b><a href="qpushbutton.html">QPushButton</a>, <a href="qcheckbox.html">QCheckBox</a>, and <a href="qradiobutton.html">QRadioButton</a>.</p>
<!-- @@@Q3ButtonGroup -->
<div class="prop">
<h2>Property Documentation</h2>
<!-- $$$exclusive-prop$$$isExclusive$$$setExclusivebool -->
<h3 class="fn"><a name="exclusive-prop"></a><span class="name">exclusive</span> : <span class="type">bool</span></h3>
<p>This property holds whether the button group is exclusive.</p>
<p>If this property is true, then the buttons in the group are toggled, and to untoggle a button you must click on another button in the group. The default value is 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>isExclusive</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setExclusive</b></span> ( bool )</td></tr>
</table>
<!-- @@@exclusive -->
<!-- $$$radioButtonExclusive-prop$$$isRadioButtonExclusive$$$setRadioButtonExclusivebool -->
<h3 class="fn"><a name="radioButtonExclusive-prop"></a><span class="name">radioButtonExclusive</span> : <span class="type">bool</span></h3>
<p>This property holds whether the radio buttons in the group are exclusive.</p>
<p>If this property is true (the default), the <a href="qradiobutton.html">radio buttons</a> in the group are treated exclusively.</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>isRadioButtonExclusive</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRadioButtonExclusive</b></span> ( bool )</td></tr>
</table>
<!-- @@@radioButtonExclusive -->
<!-- $$$selectedId-prop$$$selectedId$$$setButtonint -->
<h3 class="fn"><a name="selectedId-prop"></a><span class="name">selectedId</span> : <span class="type">int</span></h3>
<p>This property holds the id of the selected toggle button.</p>
<p>If no toggle button is selected, <a href="q3buttongroup.html#id">id</a>() returns -1.</p>
<p>If setButton() is called on an exclusive group, the button with the given id will be set to on and all the others will be set to off.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>selectedId</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setButton</b></span> ( int <i>id</i> )</td></tr>
</table>
<p><b>See also </b><a href="q3buttongroup.html#selected">selected</a>().</p>
<!-- @@@selectedId -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$Q3ButtonGroup[overload1]$$$Q3ButtonGroupQWidget*constchar* -->
<h3 class="fn"><a name="Q3ButtonGroup"></a>Q3ButtonGroup::<span class="name">Q3ButtonGroup</span> ( <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>parent</i> = 0, const <span class="type">char</span> * <i>name</i> = 0 )</h3>
<p>Constructs a button group with no title.</p>
<p>The <i>parent</i> and <i>name</i> arguments are passed to the <a href="qwidget.html">QWidget</a> constructor.</p>
<!-- @@@Q3ButtonGroup -->
<!-- $$$Q3ButtonGroup$$$Q3ButtonGroupconstQString&QWidget*constchar* -->
<h3 class="fn"><a name="Q3ButtonGroup-2"></a>Q3ButtonGroup::<span class="name">Q3ButtonGroup</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>title</i>, <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>parent</i> = 0, const <span class="type">char</span> * <i>name</i> = 0 )</h3>
<p>Constructs a button group with the title <i>title</i>.</p>
<p>The <i>parent</i> and <i>name</i> arguments are passed to the <a href="qwidget.html">QWidget</a> constructor.</p>
<!-- @@@Q3ButtonGroup -->
<!-- $$$Q3ButtonGroup$$$Q3ButtonGroupintQt::OrientationQWidget*constchar* -->
<h3 class="fn"><a name="Q3ButtonGroup-3"></a>Q3ButtonGroup::<span class="name">Q3ButtonGroup</span> ( <span class="type">int</span> <i>strips</i>, <span class="type"><a href="qt.html#Orientation-enum">Qt::Orientation</a></span> <i>orientation</i>, <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>parent</i> = 0, const <span class="type">char</span> * <i>name</i> = 0 )</h3>
<p>Constructs a button group with no title. Child widgets will be arranged in <i>strips</i> rows or columns (depending on <i>orientation</i>).</p>
<p>The <i>parent</i> and <i>name</i> arguments are passed to the <a href="qwidget.html">QWidget</a> constructor.</p>
<!-- @@@Q3ButtonGroup -->
<!-- $$$Q3ButtonGroup$$$Q3ButtonGroupintQt::OrientationconstQString&QWidget*constchar* -->
<h3 class="fn"><a name="Q3ButtonGroup-4"></a>Q3ButtonGroup::<span class="name">Q3ButtonGroup</span> ( <span class="type">int</span> <i>strips</i>, <span class="type"><a href="qt.html#Orientation-enum">Qt::Orientation</a></span> <i>orientation</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>title</i>, <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>parent</i> = 0, const <span class="type">char</span> * <i>name</i> = 0 )</h3>
<p>Constructs a button group with title <i>title</i>. Child widgets will be arranged in <i>strips</i> rows or columns (depending on <i>orientation</i>).</p>
<p>The <i>parent</i> and <i>name</i> arguments are passed to the <a href="qwidget.html">QWidget</a> constructor.</p>
<!-- @@@Q3ButtonGroup -->
<!-- $$$~Q3ButtonGroup[overload1]$$$~Q3ButtonGroup -->
<h3 class="fn"><a name="dtor.Q3ButtonGroup"></a>Q3ButtonGroup::<span class="name">~Q3ButtonGroup</span> ()</h3>
<p>Destructor.</p>
<!-- @@@~Q3ButtonGroup -->
<!-- $$$clicked[overload1]$$$clickedint -->
<h3 class="fn"><a name="clicked"></a><span class="type">void</span> Q3ButtonGroup::<span class="name">clicked</span> ( <span class="type">int</span> <i>id</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when a button in the group is <a href="qabstractbutton.html#clicked">clicked</a>. The <i>id</i> argument is the button's identifier.</p>
<p><b>See also </b><a href="q3buttongroup.html#insert">insert</a>().</p>
<!-- @@@clicked -->
<!-- $$$count[overload1]$$$count -->
<h3 class="fn"><a name="count"></a><span class="type">int</span> Q3ButtonGroup::<span class="name">count</span> () const</h3>
<p>Returns the number of buttons in the group.</p>
<!-- @@@count -->
<!-- $$$event[overload1]$$$eventQEvent* -->
<h3 class="fn"><a name="event"></a><span class="type">bool</span> Q3ButtonGroup::<span class="name">event</span> ( <span class="type"><a href="qevent.html">QEvent</a></span> * <i>e</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qobject.html#event">QObject::event</a>().</p>
<!-- @@@event -->
<!-- $$$find[overload1]$$$findint -->
<h3 class="fn"><a name="find"></a><span class="type"><a href="qabstractbutton.html">QAbstractButton</a></span> * Q3ButtonGroup::<span class="name">find</span> ( <span class="type">int</span> <i>id</i> ) const</h3>
<p>Returns the button with the specified identifier <i>id</i>, or 0 if the button was not found.</p>
<!-- @@@find -->
<!-- $$$id[overload1]$$$idQAbstractButton* -->
<h3 class="fn"><a name="id"></a><span class="type">int</span> Q3ButtonGroup::<span class="name">id</span> ( <span class="type"><a href="qabstractbutton.html">QAbstractButton</a></span> * <i>button</i> ) const</h3>
<p>Returns the id of <i>button</i>, or -1 if <i>button</i> is not a member of this group.</p>
<p><b>See also </b><a href="q3buttongroup.html#selectedId-prop">selectedId</a>().</p>
<!-- @@@id -->
<!-- $$$insert[overload1]$$$insertQAbstractButton*int -->
<h3 class="fn"><a name="insert"></a><span class="type">int</span> Q3ButtonGroup::<span class="name">insert</span> ( <span class="type"><a href="qabstractbutton.html">QAbstractButton</a></span> * <i>button</i>, <span class="type">int</span> <i>id</i> = -1 )</h3>
<p>Inserts the <i>button</i> with the identifier <i>id</i> into the button group. Returns the button identifier.</p>
<p>Buttons are normally inserted into a button group automatically by passing the button group as the parent when the button is constructed. So it is not necessary to manually insert buttons that have this button group as their parent widget. An exception is when you want custom identifiers instead of the default 0, 1, 2, etc., or if you want the buttons to have some other parent.</p>
<p>The button is assigned the identifier <i>id</i> or an automatically generated identifier. It works as follows: If <i>id</i> &gt;= 0, this identifier is assigned. If <i>id</i> == -1 (default), the identifier is equal to the number of buttons in the group. If <i>id</i> is any other negative integer, for instance -2, a unique identifier (negative integer &lt;= -2) is generated. No button has an id of -1.</p>
<p><b>See also </b><a href="q3buttongroup.html#find">find</a>(), <a href="q3buttongroup.html#remove">remove</a>(), and <a href="q3buttongroup.html#exclusive-prop">setExclusive</a>().</p>
<!-- @@@insert -->
<!-- $$$pressed[overload1]$$$pressedint -->
<h3 class="fn"><a name="pressed"></a><span class="type">void</span> Q3ButtonGroup::<span class="name">pressed</span> ( <span class="type">int</span> <i>id</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when a button in the group is <a href="qabstractbutton.html#pressed">pressed</a>. The <i>id</i> argument is the button's identifier.</p>
<p><b>See also </b><a href="q3buttongroup.html#insert">insert</a>().</p>
<!-- @@@pressed -->
<!-- $$$released[overload1]$$$releasedint -->
<h3 class="fn"><a name="released"></a><span class="type">void</span> Q3ButtonGroup::<span class="name">released</span> ( <span class="type">int</span> <i>id</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when a button in the group is <a href="qabstractbutton.html#released">released</a>. The <i>id</i> argument is the button's identifier.</p>
<p><b>See also </b><a href="q3buttongroup.html#insert">insert</a>().</p>
<!-- @@@released -->
<!-- $$$remove[overload1]$$$removeQAbstractButton* -->
<h3 class="fn"><a name="remove"></a><span class="type">void</span> Q3ButtonGroup::<span class="name">remove</span> ( <span class="type"><a href="qabstractbutton.html">QAbstractButton</a></span> * <i>button</i> )</h3>
<p>Removes the <i>button</i> from the button group.</p>
<p><b>See also </b><a href="q3buttongroup.html#insert">insert</a>().</p>
<!-- @@@remove -->
<!-- $$$selected[overload1]$$$selected -->
<h3 class="fn"><a name="selected"></a><span class="type"><a href="qabstractbutton.html">QAbstractButton</a></span> * Q3ButtonGroup::<span class="name">selected</span> () const</h3>
<p>Returns the selected toggle button if exactly one is selected; otherwise returns 0.</p>
<p><b>See also </b><a href="q3buttongroup.html#selectedId-prop">selectedId</a>().</p>
<!-- @@@selected -->
</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>