Sophie

Sophie

distrib > Mageia > 7 > x86_64 > by-pkgid > 1dd17e0d683ef79b4bb6872bbf359d7f > files > 5636

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" />
<!-- qlcdnumber.cpp -->
  <title>Qt 4.8: QLCDNumber 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="qtgui.html">QtGui</a></li>
<li>QLCDNumber</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-types">Public Types</a></li>
<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">QLCDNumber Class Reference</h1>
<!-- $$$QLCDNumber-brief -->
<p>The QLCDNumber widget displays a number with LCD-like digits. <a href="#details">More...</a></p>
<!-- @@@QLCDNumber -->
<pre class="cpp"> <span class="preprocessor">#include &lt;QLCDNumber&gt;</span></pre><p><b>Inherits: </b><a href="qframe.html">QFrame</a>.</p>
<ul>
<li><a href="qlcdnumber-members.html">List of all members, including inherited members</a></li>
<li><a href="qlcdnumber-qt3.html">Qt 3 support members</a></li>
</ul>
<a name="public-types"></a>
<h2>Public Types</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qlcdnumber.html#Mode-enum">Mode</a></b> { Hex, Dec, Oct, Bin }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qlcdnumber.html#SegmentStyle-enum">SegmentStyle</a></b> { Outline, Filled, Flat }</td></tr>
</table>
<a name="properties"></a>
<h2>Properties</h2>
<table class="propsummary">
<tr><td class="topAlign"><ul>
<li class="fn"><b><a href="qlcdnumber.html#digitCount-prop">digitCount</a></b> : int</li>
<li class="fn"><b><a href="qlcdnumber.html#intValue-prop">intValue</a></b> : int</li>
<li class="fn"><b><a href="qlcdnumber.html#mode-prop">mode</a></b> : Mode</li>
<li class="fn"><b><a href="qlcdnumber.html#numDigits-prop">numDigits</a></b> : int<tt> (deprecated)</tt></li>
</ul></td><td class="topAlign"><ul>
<li class="fn"><b><a href="qlcdnumber.html#segmentStyle-prop">segmentStyle</a></b> : SegmentStyle</li>
<li class="fn"><b><a href="qlcdnumber.html#smallDecimalPoint-prop">smallDecimalPoint</a></b> : bool</li>
<li class="fn"><b><a href="qlcdnumber.html#value-prop">value</a></b> : double</li>
</ul>
</td></tr>
</table>
<ul>
<li class="fn">6 properties inherited from <a href="qframe.html#properties">QFrame</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="qlcdnumber.html#QLCDNumber">QLCDNumber</a></b> ( QWidget * <i>parent</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qlcdnumber.html#QLCDNumber-2">QLCDNumber</a></b> ( uint <i>numDigits</i>, QWidget * <i>parent</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qlcdnumber.html#dtor.QLCDNumber">~QLCDNumber</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qlcdnumber.html#checkOverflow">checkOverflow</a></b> ( double <i>num</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qlcdnumber.html#checkOverflow-2">checkOverflow</a></b> ( int <i>num</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qlcdnumber.html#digitCount-prop">digitCount</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qlcdnumber.html#intValue-prop">intValue</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Mode </td><td class="memItemRight bottomAlign"><b><a href="qlcdnumber.html#mode-prop">mode</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> SegmentStyle </td><td class="memItemRight bottomAlign"><b><a href="qlcdnumber.html#segmentStyle-prop">segmentStyle</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qlcdnumber.html#digitCount-prop">setDigitCount</a></b> ( int <i>numDigits</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qlcdnumber.html#mode-prop">setMode</a></b> ( Mode )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qlcdnumber.html#segmentStyle-prop">setSegmentStyle</a></b> ( SegmentStyle )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qlcdnumber.html#smallDecimalPoint-prop">smallDecimalPoint</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> double </td><td class="memItemRight bottomAlign"><b><a href="qlcdnumber.html#value-prop">value</a></b> () const</td></tr>
</table>
<a name="reimplemented-public-functions"></a>
<h2>Reimplemented Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual QSize </td><td class="memItemRight bottomAlign"><b><a href="qlcdnumber.html#sizeHint">sizeHint</a></b> () const</td></tr>
</table>
<ul>
<li class="fn">14 public functions inherited from <a href="qframe.html#public-functions">QFrame</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="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="qlcdnumber.html#intValue-prop">display</a></b> ( const QString &amp; <i>s</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qlcdnumber.html#intValue-prop">display</a></b> ( double <i>num</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qlcdnumber.html#intValue-prop">display</a></b> ( int <i>num</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qlcdnumber.html#setBinMode">setBinMode</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qlcdnumber.html#setDecMode">setDecMode</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qlcdnumber.html#setHexMode">setHexMode</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qlcdnumber.html#setOctMode">setOctMode</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qlcdnumber.html#smallDecimalPoint-prop">setSmallDecimalPoint</a></b> ( bool )</td></tr>
</table>
<ul>
<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>
</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="qlcdnumber.html#overflow">overflow</a></b> ()</td></tr>
</table>
<ul>
<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="qlcdnumber.html#event">event</a></b> ( QEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qlcdnumber.html#paintEvent">paintEvent</a></b> ( QPaintEvent * )</td></tr>
</table>
<ul>
<li class="fn">3 protected functions inherited from <a href="qframe.html#protected-functions">QFrame</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">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">3 protected functions inherited from <a href="qframe.html#protected-functions">QFrame</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>
<!-- $$$QLCDNumber-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QLCDNumber widget displays a number with LCD-like digits.</p>
<p>It can display a number in just about any size. It can display decimal, hexadecimal, octal or binary numbers. It is easy to connect to data sources using the <a href="qlcdnumber.html#intValue-prop">display</a>() slot, which is overloaded to take any of five argument types.</p>
<p>There are also slots to change the base with <a href="qlcdnumber.html#mode-prop">setMode</a>() and the decimal point with <a href="qlcdnumber.html#smallDecimalPoint-prop">setSmallDecimalPoint</a>().</p>
<p>QLCDNumber emits the <a href="qlcdnumber.html#overflow">overflow</a>() signal when it is asked to display something beyond its range. The range is set by <a href="qlcdnumber.html#digitCount-prop">setDigitCount</a>(), but <a href="qlcdnumber.html#smallDecimalPoint-prop">setSmallDecimalPoint</a>() also influences it. If the display is set to hexadecimal, octal or binary, the integer equivalent of the value is displayed.</p>
<p>These digits and other symbols can be shown: 0/O, 1, 2, 3, 4, 5/S, 6, 7, 8, 9/g, minus, decimal point, A, B, C, D, E, F, h, H, L, o, P, r, u, U, Y, colon, degree sign (which is specified as single quote in the string) and space. QLCDNumber substitutes spaces for illegal characters.</p>
<p>It is not possible to retrieve the contents of a QLCDNumber object, although you can retrieve the numeric value with <a href="qlcdnumber.html#value-prop">value</a>(). If you really need the text, we recommend that you connect the signals that feed the <a href="qlcdnumber.html#intValue-prop">display</a>() slot to another slot as well and store the value there.</p>
<p>Incidentally, QLCDNumber is the very oldest part of Qt, tracing its roots back to a BASIC program on the <a href="http://www.nvg.ntnu.no/sinclair/computers/zxspectrum/zxspectrum.htm">Sinclair Spectrum</a>.</p>
<table class="generic">
<tr valign="top" class="odd"><td ><img src="images/motif-lcdnumber.png" alt="Screenshot of a Motif style LCD number widget" /> <img src="images/cde-lcdnumber.png" alt="Screenshot of a CDE style LCD number widget" /> <img src="images/windows-lcdnumber.png" alt="Screenshot of a Windows style LCD number widget" /> <img src="images/windowsxp-lcdnumber.png" alt="Screenshot of a Windows XP style LCD number widget" /> <img src="images/macintosh-lcdnumber.png" alt="Screenshot of a Macintosh style LCD number widget" /> <img src="images/plastique-lcdnumber.png" alt="Screenshot of a Plastique style LCD number widget" /></td></tr>
<tr valign="top" class="even"><td >LCD number widgets shown in various widget styles (from left to right): <a href="gallery-motif.html">Motif</a>, <a href="gallery-cde.html">CDE</a>, <a href="gallery-windows.html">Windows</a>, <a href="gallery-windowsxp.html">Windows XP</a>, <a href="gallery-macintosh.html">Macintosh</a>, <a href="gallery-plastique.html">Plastique</a>.</td></tr>
</table>
</div>
<p><b>See also </b><a href="qlabel.html">QLabel</a>, <a href="qframe.html">QFrame</a>, <a href="widgets-digitalclock.html">Digital Clock Example</a>, and <a href="widgets-tetrix.html">Tetrix Example</a>.</p>
<!-- @@@QLCDNumber -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$Mode$$$Hex$$$Dec$$$Oct$$$Bin$$$HEX$$$DEC$$$OCT$$$BIN -->
<h3 class="fn"><a name="Mode-enum"></a>enum QLCDNumber::<span class="name">Mode</span></h3>
<p>This type determines how numbers are shown.</p>
<table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><tt>QLCDNumber::Hex</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">Hexadecimal</td></tr>
<tr><td class="topAlign"><tt>QLCDNumber::Dec</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">Decimal</td></tr>
<tr><td class="topAlign"><tt>QLCDNumber::Oct</tt></td><td class="topAlign"><tt>2</tt></td><td class="topAlign">Octal</td></tr>
<tr><td class="topAlign"><tt>QLCDNumber::Bin</tt></td><td class="topAlign"><tt>3</tt></td><td class="topAlign">Binary</td></tr>
</table>
<p>If the display is set to hexadecimal, octal or binary, the integer equivalent of the value is displayed.</p>
<!-- @@@Mode -->
<!-- $$$SegmentStyle$$$Outline$$$Filled$$$Flat -->
<h3 class="fn"><a name="SegmentStyle-enum"></a>enum QLCDNumber::<span class="name">SegmentStyle</span></h3>
<p>This type determines the visual appearance of the <a href="qlcdnumber.html">QLCDNumber</a> widget.</p>
<table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><tt>QLCDNumber::Outline</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">gives raised segments filled with the background color.</td></tr>
<tr><td class="topAlign"><tt>QLCDNumber::Filled</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">gives raised segments filled with the windowText color.</td></tr>
<tr><td class="topAlign"><tt>QLCDNumber::Flat</tt></td><td class="topAlign"><tt>2</tt></td><td class="topAlign">gives flat segments filled with the windowText color.</td></tr>
</table>
<!-- @@@SegmentStyle -->
</div>
<div class="prop">
<h2>Property Documentation</h2>
<!-- $$$digitCount-prop$$$digitCount$$$setDigitCountint -->
<h3 class="fn"><a name="digitCount-prop"></a><span class="name">digitCount</span> : <span class="type">int</span></h3>
<p>This property holds the current number of digits displayed.</p>
<p>Corresponds to the current number of digits. If <a href="qlcdnumber.html#smallDecimalPoint-prop">QLCDNumber::smallDecimalPoint</a> is false, the decimal point occupies one digit position.</p>
<p>By default, this property contains a value of 5.</p>
<p>This property was introduced in Qt 4.6.</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>digitCount</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDigitCount</b></span> ( int <i>numDigits</i> )</td></tr>
</table>
<p><b>See also </b><a href="qlcdnumber.html#smallDecimalPoint-prop">smallDecimalPoint</a>.</p>
<!-- @@@digitCount -->
<!-- $$$intValue-prop$$$intValue$$$displayconstQString&$$$displayint$$$displaydouble -->
<h3 class="fn"><a name="intValue-prop"></a><span class="name">intValue</span> : <span class="type">int</span></h3>
<p>This property holds the displayed value rounded to the nearest integer.</p>
<p>This property corresponds to the nearest integer to the current value displayed by the LCDNumber. This is the value used for hexadecimal, octal and binary modes.</p>
<p>If the displayed value is not a number, the property has a value of 0.</p>
<p>By default, this property contains a value of 0.</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>intValue</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>display</b></span> ( const QString &amp; <i>s</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>display</b></span> ( int <i>num</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>display</b></span> ( double <i>num</i> )</td></tr>
</table>
<!-- @@@intValue -->
<!-- $$$mode-prop$$$mode$$$setModeMode -->
<h3 class="fn"><a name="mode-prop"></a><span class="name">mode</span> : <span class="type"><a href="qlcdnumber.html#Mode-enum">Mode</a></span></h3>
<p>This property holds the current display mode (number base).</p>
<p>Corresponds to the current display mode, which is one of <tt>Bin</tt>, <tt>Oct</tt>, <tt>Dec</tt> (the default) and <tt>Hex</tt>. <tt>Dec</tt> mode can display floating point values, the other modes display the integer equivalent.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> Mode </td><td class="memItemRight bottomAlign"><span class="name"><b>mode</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMode</b></span> ( Mode )</td></tr>
</table>
<p><b>See also </b><a href="qlcdnumber.html#smallDecimalPoint-prop">smallDecimalPoint</a>(), <a href="qlcdnumber.html#setHexMode">setHexMode</a>(), <a href="qlcdnumber.html#setDecMode">setDecMode</a>(), <a href="qlcdnumber.html#setOctMode">setOctMode</a>(), and <a href="qlcdnumber.html#setBinMode">setBinMode</a>().</p>
<!-- @@@mode -->
<!-- $$$numDigits-prop$$$numDigits$$$setNumDigitsint -->
<h3 class="fn"><a name="numDigits-prop"></a><span class="name">numDigits</span> : <span class="type">int</span></h3>
<p>This property is deprecated.</p>
<p>This property holds the current number of digits displayed.</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><a href="qlcdnumber-qt3.html#numDigits-prop">numDigits</a></b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qlcdnumber-qt3.html#numDigits-prop">setNumDigits</a></b></span> ( int <i>nDigits</i> )</td></tr>
</table>
<p><b>See also </b><a href="qlcdnumber.html#digitCount-prop">digitCount</a>.</p>
<!-- @@@numDigits -->
<!-- $$$segmentStyle-prop$$$segmentStyle$$$setSegmentStyleSegmentStyle -->
<h3 class="fn"><a name="segmentStyle-prop"></a><span class="name">segmentStyle</span> : <span class="type"><a href="qlcdnumber.html#SegmentStyle-enum">SegmentStyle</a></span></h3>
<p>This property holds the style of the LCDNumber.</p>
<table class="generic">
<thead><tr class="qt-style"><th >Style</th><th >Result</th></tr></thead>
<tr valign="top" class="odd"><td ><tt>Outline</tt></td><td >Produces raised segments filled with the background color</td></tr>
<tr valign="top" class="even"><td ><tt>Filled</tt> (this is the default).</td><td >Produces raised segments filled with the foreground color.</td></tr>
<tr valign="top" class="odd"><td ><tt>Flat</tt></td><td >Produces flat segments filled with the foreground color.</td></tr>
</table>
<p><tt>Outline</tt> and <tt>Filled</tt> will additionally use <a href="qpalette.html#light">QPalette::light</a>() and <a href="qpalette.html#dark">QPalette::dark</a>() for shadow effects.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> SegmentStyle </td><td class="memItemRight bottomAlign"><span class="name"><b>segmentStyle</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSegmentStyle</b></span> ( SegmentStyle )</td></tr>
</table>
<!-- @@@segmentStyle -->
<!-- $$$smallDecimalPoint-prop$$$smallDecimalPoint$$$setSmallDecimalPointbool -->
<h3 class="fn"><a name="smallDecimalPoint-prop"></a><span class="name">smallDecimalPoint</span> : <span class="type">bool</span></h3>
<p>This property holds the style of the decimal point.</p>
<p>If true the decimal point is drawn between two digit positions. Otherwise it occupies a digit position of its own, i.e&#x2e; is drawn in a digit position. The default is false.</p>
<p>The inter-digit space is made slightly wider when the decimal point is drawn between the digits.</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>smallDecimalPoint</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSmallDecimalPoint</b></span> ( bool )</td></tr>
</table>
<p><b>See also </b><a href="qlcdnumber.html#mode-prop">mode</a>.</p>
<!-- @@@smallDecimalPoint -->
<!-- $$$value-prop$$$value$$$displayconstQString&$$$displayint$$$displaydouble -->
<h3 class="fn"><a name="value-prop"></a><span class="name">value</span> : <span class="type">double</span></h3>
<p>This property holds the displayed value.</p>
<p>This property corresponds to the current value displayed by the LCDNumber.</p>
<p>If the displayed value is not a number, the property has a value of 0.</p>
<p>By default, this property contains a value of 0.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> double </td><td class="memItemRight bottomAlign"><span class="name"><b>value</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qlcdnumber.html#intValue-prop">display</a></b></span> ( const QString &amp; <i>s</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qlcdnumber.html#intValue-prop">display</a></b></span> ( int <i>num</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qlcdnumber.html#intValue-prop">display</a></b></span> ( double <i>num</i> )</td></tr>
</table>
<!-- @@@value -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QLCDNumber[overload1]$$$QLCDNumberQWidget* -->
<h3 class="fn"><a name="QLCDNumber"></a>QLCDNumber::<span class="name">QLCDNumber</span> ( <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>parent</i> = 0 )</h3>
<p>Constructs an LCD number, sets the number of digits to 5, the base to decimal, the decimal point mode to 'small' and the frame style to a raised box. The <a href="qlcdnumber.html#segmentStyle-prop">segmentStyle</a>() is set to <tt>Outline</tt>.</p>
<p>The <i>parent</i> argument is passed to the <a href="qframe.html">QFrame</a> constructor.</p>
<p><b>See also </b><a href="qlcdnumber.html#digitCount-prop">setDigitCount</a>() and <a href="qlcdnumber.html#smallDecimalPoint-prop">setSmallDecimalPoint</a>().</p>
<!-- @@@QLCDNumber -->
<!-- $$$QLCDNumber$$$QLCDNumberuintQWidget* -->
<h3 class="fn"><a name="QLCDNumber-2"></a>QLCDNumber::<span class="name">QLCDNumber</span> ( <span class="type"><a href="qtglobal.html#uint-typedef">uint</a></span> <i>numDigits</i>, <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>parent</i> = 0 )</h3>
<p>Constructs an LCD number, sets the number of digits to <i>numDigits</i>, the base to decimal, the decimal point mode to 'small' and the frame style to a raised box. The <a href="qlcdnumber.html#segmentStyle-prop">segmentStyle</a>() is set to <tt>Filled</tt>.</p>
<p>The <i>parent</i> argument is passed to the <a href="qframe.html">QFrame</a> constructor.</p>
<p><b>See also </b><a href="qlcdnumber.html#digitCount-prop">setDigitCount</a>() and <a href="qlcdnumber.html#smallDecimalPoint-prop">setSmallDecimalPoint</a>().</p>
<!-- @@@QLCDNumber -->
<!-- $$$~QLCDNumber[overload1]$$$~QLCDNumber -->
<h3 class="fn"><a name="dtor.QLCDNumber"></a>QLCDNumber::<span class="name">~QLCDNumber</span> ()</h3>
<p>Destroys the LCD number.</p>
<!-- @@@~QLCDNumber -->
<!-- $$$checkOverflow[overload1]$$$checkOverflowdouble -->
<h3 class="fn"><a name="checkOverflow"></a><span class="type">bool</span> QLCDNumber::<span class="name">checkOverflow</span> ( <span class="type">double</span> <i>num</i> ) const</h3>
<p>Returns true if <i>num</i> is too big to be displayed in its entirety; otherwise returns false.</p>
<p><b>See also </b><a href="qlcdnumber.html#intValue-prop">display</a>(), <a href="qlcdnumber.html#digitCount-prop">digitCount</a>(), and <a href="qlcdnumber.html#smallDecimalPoint-prop">smallDecimalPoint</a>().</p>
<!-- @@@checkOverflow -->
<!-- $$$checkOverflow$$$checkOverflowint -->
<h3 class="fn"><a name="checkOverflow-2"></a><span class="type">bool</span> QLCDNumber::<span class="name">checkOverflow</span> ( <span class="type">int</span> <i>num</i> ) const</h3>
<p>This is an overloaded function.</p>
<p>Returns true if <i>num</i> is too big to be displayed in its entirety; otherwise returns false.</p>
<p><b>See also </b><a href="qlcdnumber.html#intValue-prop">display</a>(), <a href="qlcdnumber.html#digitCount-prop">digitCount</a>(), and <a href="qlcdnumber.html#smallDecimalPoint-prop">smallDecimalPoint</a>().</p>
<!-- @@@checkOverflow -->
<!-- $$$event[overload1]$$$eventQEvent* -->
<h3 class="fn"><a name="event"></a><span class="type">bool</span> QLCDNumber::<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 -->
<!-- $$$overflow[overload1]$$$overflow -->
<h3 class="fn"><a name="overflow"></a><span class="type">void</span> QLCDNumber::<span class="name">overflow</span> ()<tt> [signal]</tt></h3>
<p>This signal is emitted whenever the <a href="qlcdnumber.html">QLCDNumber</a> is asked to display a too-large number or a too-long string.</p>
<p>It is never emitted by <a href="qlcdnumber.html#digitCount-prop">setDigitCount</a>().</p>
<!-- @@@overflow -->
<!-- $$$paintEvent[overload1]$$$paintEventQPaintEvent* -->
<h3 class="fn"><a name="paintEvent"></a><span class="type">void</span> QLCDNumber::<span class="name">paintEvent</span> ( <span class="type"><a href="qpaintevent.html">QPaintEvent</a></span> * )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#paintEvent">QWidget::paintEvent</a>().</p>
<!-- @@@paintEvent -->
<!-- $$$setBinMode[overload1]$$$setBinMode -->
<h3 class="fn"><a name="setBinMode"></a><span class="type">void</span> QLCDNumber::<span class="name">setBinMode</span> ()<tt> [slot]</tt></h3>
<p>Calls setMode(Bin). Provided for convenience (e.g&#x2e; for connecting buttons to it).</p>
<p><b>See also </b><a href="qlcdnumber.html#mode-prop">setMode</a>(), <a href="qlcdnumber.html#setHexMode">setHexMode</a>(), <a href="qlcdnumber.html#setDecMode">setDecMode</a>(), <a href="qlcdnumber.html#setOctMode">setOctMode</a>(), and <a href="qlcdnumber.html#mode-prop">mode</a>().</p>
<!-- @@@setBinMode -->
<!-- $$$setDecMode[overload1]$$$setDecMode -->
<h3 class="fn"><a name="setDecMode"></a><span class="type">void</span> QLCDNumber::<span class="name">setDecMode</span> ()<tt> [slot]</tt></h3>
<p>Calls setMode(Dec). Provided for convenience (e.g&#x2e; for connecting buttons to it).</p>
<p><b>See also </b><a href="qlcdnumber.html#mode-prop">setMode</a>(), <a href="qlcdnumber.html#setHexMode">setHexMode</a>(), <a href="qlcdnumber.html#setOctMode">setOctMode</a>(), <a href="qlcdnumber.html#setBinMode">setBinMode</a>(), and <a href="qlcdnumber.html#mode-prop">mode</a>().</p>
<!-- @@@setDecMode -->
<!-- $$$setHexMode[overload1]$$$setHexMode -->
<h3 class="fn"><a name="setHexMode"></a><span class="type">void</span> QLCDNumber::<span class="name">setHexMode</span> ()<tt> [slot]</tt></h3>
<p>Calls setMode(Hex). Provided for convenience (e.g&#x2e; for connecting buttons to it).</p>
<p><b>See also </b><a href="qlcdnumber.html#mode-prop">setMode</a>(), <a href="qlcdnumber.html#setDecMode">setDecMode</a>(), <a href="qlcdnumber.html#setOctMode">setOctMode</a>(), <a href="qlcdnumber.html#setBinMode">setBinMode</a>(), and <a href="qlcdnumber.html#mode-prop">mode</a>().</p>
<!-- @@@setHexMode -->
<!-- $$$setOctMode[overload1]$$$setOctMode -->
<h3 class="fn"><a name="setOctMode"></a><span class="type">void</span> QLCDNumber::<span class="name">setOctMode</span> ()<tt> [slot]</tt></h3>
<p>Calls setMode(Oct). Provided for convenience (e.g&#x2e; for connecting buttons to it).</p>
<p><b>See also </b><a href="qlcdnumber.html#mode-prop">setMode</a>(), <a href="qlcdnumber.html#setHexMode">setHexMode</a>(), <a href="qlcdnumber.html#setDecMode">setDecMode</a>(), <a href="qlcdnumber.html#setBinMode">setBinMode</a>(), and <a href="qlcdnumber.html#mode-prop">mode</a>().</p>
<!-- @@@setOctMode -->
<!-- $$$sizeHint[overload1]$$$sizeHint -->
<h3 class="fn"><a name="sizeHint"></a><span class="type"><a href="qsize.html">QSize</a></span> QLCDNumber::<span class="name">sizeHint</span> () const<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#sizeHint-prop">QWidget::sizeHint</a>().</p>
<!-- @@@sizeHint -->
</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>