Sophie

Sophie

distrib > Fedora > 18 > x86_64 > by-pkgid > ff187cb994c94c614ecc64c5a8528b1b > files > 1619

qt-doc-4.8.5-10.fc18.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" />
<!-- ecmascript.qdoc -->
  <title>Qt 4.8: ECMAScript 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>ECMAScript Reference</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="#the-global-object">The Global Object</a></li>
<li class="level2"><a href="#value-properties">Value Properties</a></li>
<li class="level2"><a href="#function-properties">Function Properties</a></li>
<li class="level2"><a href="#constructor-properties">Constructor Properties</a></li>
<li class="level2"><a href="#other-properties">Other Properties</a></li>
<li class="level1"><a href="#object-objects">Object Objects</a></li>
<li class="level2"><a href="#object-constructor">Object Constructor</a></li>
<li class="level3"><a href="#function-properties">Function Properties</a></li>
<li class="level2"><a href="#object-prototype-object">Object Prototype Object</a></li>
<li class="level3"><a href="#function-properties">Function Properties</a></li>
<li class="level1"><a href="#function-objects">Function Objects</a></li>
<li class="level2"><a href="#function-prototype-object">Function Prototype Object</a></li>
<li class="level3"><a href="#function-properties">Function Properties</a></li>
<li class="level1"><a href="#array-objects">Array Objects</a></li>
<li class="level2"><a href="#array-prototype-object">Array Prototype Object</a></li>
<li class="level3"><a href="#function-properties">Function Properties</a></li>
<li class="level1"><a href="#string-objects">String Objects</a></li>
<li class="level2"><a href="#string-prototype-object">String Prototype Object</a></li>
<li class="level3"><a href="#function-properties">Function Properties</a></li>
<li class="level1"><a href="#boolean-objects">Boolean Objects</a></li>
<li class="level2"><a href="#boolean-prototype-object">Boolean Prototype Object</a></li>
<li class="level3"><a href="#function-properties">Function Properties</a></li>
<li class="level1"><a href="#number-objects">Number Objects</a></li>
<li class="level2"><a href="#number-prototype-object">Number Prototype Object</a></li>
<li class="level3"><a href="#function-properties">Function Properties</a></li>
<li class="level1"><a href="#the-math-object">The Math Object</a></li>
<li class="level2"><a href="#value-properties">Value Properties</a></li>
<li class="level2"><a href="#function-properties">Function Properties</a></li>
<li class="level1"><a href="#date-objects">Date Objects</a></li>
<li class="level2"><a href="#date-prototype-object">Date Prototype Object</a></li>
<li class="level3"><a href="#function-properties">Function Properties</a></li>
<li class="level1"><a href="#regexp-objects">RegExp Objects</a></li>
<li class="level2"><a href="#regexp-prototype-object">RegExp Prototype Object</a></li>
<li class="level3"><a href="#function-properties">Function Properties</a></li>
<li class="level1"><a href="#error-objects">Error Objects</a></li>
<li class="level2"><a href="#error-prototype-object">Error Prototype Object</a></li>
<li class="level3"><a href="#value-properties">Value Properties</a></li>
<li class="level3"><a href="#function-properties">Function Properties</a></li>
<li class="level1"><a href="#the-json-object">The JSON Object</a></li>
<li class="level2"><a href="#function-properties">Function Properties</a></li>
</ul>
</div>
<h1 class="title">ECMAScript Reference</h1>
<span class="subtitle"></span>
<!-- $$$ecmascript.html-description -->
<div class="descr"> <a name="details"></a>
<p>This reference contains a list of built-in objects, functions and properties supported by <a href="qtscript.html">QtScript</a>. For a detailed description, see the <a href="http://www.ecma-international.org/publications/standards/Ecma-262.htm">ECMA-262</a> specification.</p>
<a name="the-global-object"></a>
<h2>The Global Object</h2>
<a name="value-properties"></a>
<h3>Value Properties</h3>
<ul>
<li>NaN</li>
<li>Infinity</li>
<li>undefined</li>
</ul>
<a name="function-properties"></a>
<h3>Function Properties</h3>
<ul>
<li>eval(x)</li>
<li>parseInt(string, radix)</li>
<li>parseFloat(string)</li>
<li>isNaN(number)</li>
<li>isFinite(number)</li>
<li>decodeURI(encodedURI)</li>
<li>decodeURIComponent(encodedURIComponent)</li>
<li>encodeURI(uri)</li>
<li>encodeURIComponent(uriComponent)</li>
</ul>
<a name="constructor-properties"></a>
<h3>Constructor Properties</h3>
<ul>
<li>Object</li>
<li>Function</li>
<li>Array</li>
<li>String</li>
<li>Boolean</li>
<li>Number</li>
<li>Date</li>
<li>RegExp</li>
<li>Error</li>
<li>EvalError</li>
<li>RangeError</li>
<li>ReferenceError</li>
<li>SyntaxError</li>
<li>TypeError</li>
<li>URIError</li>
</ul>
<a name="other-properties"></a>
<h3>Other Properties</h3>
<ul>
<li>Math</li>
<li>JSON</li>
</ul>
<a name="object-objects"></a>
<h2>Object Objects</h2>
<a name="object-constructor"></a>
<h3>Object Constructor</h3>
<a name="function-properties"></a>
<h4>Function Properties</h4>
<ul>
<li>getPrototypeOf(O)</li>
<li>getOwnPropertyDescriptor(O, P)</li>
<li>getOwnPropertyNames(O)</li>
<li>create(O [, Properties])</li>
<li>defineProperty(O, P, Attributes)</li>
<li>defineProperties(O, Properties)</li>
<li>keys(O)</li>
</ul>
<a name="object-prototype-object"></a>
<h3>Object Prototype Object</h3>
<a name="function-properties"></a>
<h4>Function Properties</h4>
<ul>
<li>toString()</li>
<li>toLocaleString()</li>
<li>valueOf()</li>
<li>hasOwnProperty(V)</li>
<li>isPrototypeOf(V)</li>
<li>propertyIsEnumerable(V)</li>
</ul>
<a name="function-objects"></a>
<h2>Function Objects</h2>
<a name="function-prototype-object"></a>
<h3>Function Prototype Object</h3>
<a name="function-properties"></a>
<h4>Function Properties</h4>
<ul>
<li>toString()</li>
<li>apply(thisArg, argArray)</li>
<li>call(thisArg [, arg1 [, arg2, ..&#x2e;]])</li>
</ul>
<a name="array-objects"></a>
<h2>Array Objects</h2>
<a name="array-prototype-object"></a>
<h3>Array Prototype Object</h3>
<a name="function-properties"></a>
<h4>Function Properties</h4>
<ul>
<li>toString()</li>
<li>toLocaleString()</li>
<li>concat([item1 [, item2 [, ..&#x2e;]]])</li>
<li>join(separator)</li>
<li>pop()</li>
<li>push([item1 [, item2 [, ..&#x2e;]]])</li>
<li>reverse()</li>
<li>shift()</li>
<li>slice(start, end)</li>
<li>sort(comparefn)</li>
<li>splice(start, deleteCount[, item1 [, item2 [, ..&#x2e;]]])</li>
<li>unshift([item1 [, item2 [, ..&#x2e;]]])</li>
<li>indexOf(searchElement [, fromIndex])</li>
<li>lastIndexOf(searchElement [, fromIndex])</li>
<li>every(callbackfn [, thisArg])</li>
<li>some(callbackfn [, thisArg])</li>
<li><a href="containers.html#foreach">forEach</a>(callbackfn [, thisArg])</li>
<li>map(callbackfn [, thisArg])</li>
<li>filter(callbackfn [, thisArg])</li>
<li>reduce(callbackfn [, initialValue])</li>
<li>reduceRight(callbackfn [, initialValue])</li>
</ul>
<a name="string-objects"></a>
<h2>String Objects</h2>
<a name="string-prototype-object"></a>
<h3>String Prototype Object</h3>
<a name="function-properties"></a>
<h4>Function Properties</h4>
<ul>
<li>toString()</li>
<li>valueOf()</li>
<li>charAt(pos)</li>
<li>charCodeAt(pos)</li>
<li>concat([string1 [, string2 [, ..&#x2e;]]])</li>
<li>indexOf(searchString ,position)</li>
<li>lastIndexOf(searchString, position)</li>
<li>localeCompare(that)</li>
<li>match(regexp)</li>
<li>replace(searchValue, replaceValue)</li>
<li>search(regexp)</li>
<li>slice(start, end)</li>
<li>split(separator, limit)</li>
<li>substring(start, end)</li>
<li>toLowerCase()</li>
<li>toLocaleLowerCase()</li>
<li>toUpperCase()</li>
<li>toLocaleUpperCase()</li>
<li>trim()</li>
</ul>
<a name="boolean-objects"></a>
<h2>Boolean Objects</h2>
<a name="boolean-prototype-object"></a>
<h3>Boolean Prototype Object</h3>
<a name="function-properties"></a>
<h4>Function Properties</h4>
<ul>
<li>toString()</li>
<li>valueOf()</li>
</ul>
<a name="number-objects"></a>
<h2>Number Objects</h2>
<a name="number-prototype-object"></a>
<h3>Number Prototype Object</h3>
<a name="function-properties"></a>
<h4>Function Properties</h4>
<ul>
<li>toString(radix)</li>
<li>toLocaleString()</li>
<li>toFixed(fractionDigits)</li>
<li>toExponential(fractionDigits)</li>
<li>toPrecision(precision)</li>
</ul>
<a name="the-math-object"></a>
<h2>The Math Object</h2>
<a name="value-properties"></a>
<h3>Value Properties</h3>
<ul>
<li>E</li>
<li>LN10</li>
<li>LN2</li>
<li>LOG2E</li>
<li>LOG10E</li>
<li>PI</li>
<li>SQRT1_2</li>
<li>SQRT2</li>
</ul>
<a name="function-properties"></a>
<h3>Function Properties</h3>
<ul>
<li>abs(x)</li>
<li>acos(x)</li>
<li>asin(x)</li>
<li>atan(x)</li>
<li>atan2(y, x)</li>
<li>ceil(x)</li>
<li>cos(x)</li>
<li>exp(x)</li>
<li>floor(x)</li>
<li>log(x)</li>
<li>max([value1 [, value2 [, ..&#x2e;]]])</li>
<li>min([value1 [, value2 [, ..&#x2e;]]])</li>
<li>pow(x, y)</li>
<li>random()</li>
<li>round(x)</li>
<li>sin(x)</li>
<li>sqrt(x)</li>
<li>tan(x)</li>
</ul>
<a name="date-objects"></a>
<h2>Date Objects</h2>
<a name="date-prototype-object"></a>
<h3>Date Prototype Object</h3>
<a name="function-properties"></a>
<h4>Function Properties</h4>
<ul>
<li>toString()</li>
<li>toDateString()</li>
<li>toTimeString()</li>
<li>toLocaleString()</li>
<li>toLocaleDateString()</li>
<li>toLocaleTimeString()</li>
<li>valueOf()</li>
<li>getTime()</li>
<li>getFullYear()</li>
<li>getUTCFullYear()</li>
<li>getMonth()</li>
<li>getUTCMonth()</li>
<li>getDate()</li>
<li>getUTCDate()</li>
<li>getDay()</li>
<li>getUTCDay()</li>
<li>getHours()</li>
<li>getUTCHours()</li>
<li>getMinutes()</li>
<li>getUTCMinutes()</li>
<li>getSeconds()</li>
<li>getUTCSeconds()</li>
<li>getMilliseconds()</li>
<li>getUTCMilliseconds()</li>
<li>getTimeZoneOffset()</li>
<li>setTime(time)</li>
<li>setMilliseconds(ms)</li>
<li>setUTCMilliseconds(ms)</li>
<li>setSeconds(sec [, ms])</li>
<li>setUTCSeconds(sec [, ms])</li>
<li>setMinutes(min [, sec [, ms]])</li>
<li>setUTCMinutes(min [, sec [, ms]])</li>
<li>setHours(hour [, min [, sec [, ms]]])</li>
<li>setUTCHours(hour [, min [, sec [, ms]]])</li>
<li>setDate(date)</li>
<li>setUTCDate(date)</li>
<li>setMonth(month [, date])</li>
<li>setUTCMonth(month [, date])</li>
<li>setFullYear(year [, month [, date]])</li>
<li>setUTCFullYear(year [, month [, date]])</li>
<li>toUTCString()</li>
<li>toISOString()</li>
<li>toJSON()</li>
</ul>
<a name="regexp-objects"></a>
<h2>RegExp Objects</h2>
<a name="regexp-prototype-object"></a>
<h3>RegExp Prototype Object</h3>
<a name="function-properties"></a>
<h4>Function Properties</h4>
<ul>
<li>exec(string)</li>
<li>test(string)</li>
<li>toString()</li>
</ul>
<a name="error-objects"></a>
<h2>Error Objects</h2>
<a name="error-prototype-object"></a>
<h3>Error Prototype Object</h3>
<a name="value-properties"></a>
<h4>Value Properties</h4>
<ul>
<li>name</li>
<li>message</li>
</ul>
<a name="function-properties"></a>
<h4>Function Properties</h4>
<ul>
<li>toString()</li>
</ul>
<a name="the-json-object"></a>
<h2>The JSON Object</h2>
<a name="function-properties"></a>
<h3>Function Properties</h3>
<ul>
<li>parse(text [, reviver])</li>
<li>stringify(value [, replacer [, space]])</li>
</ul>
</div>
<!-- @@@ecmascript.html -->
      </div>
    </div>
    </div> 
    <div class="ft">
      <span></span>
    </div>
  </div> 
  <div class="footer">
    <p>
      <acronym title="Copyright">&copy;</acronym> 2013 Digia Plc and/or its
      subsidiaries. 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>
      Digia, Qt and their respective logos are trademarks of Digia Plc 
      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>