Sophie

Sophie

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

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" />
<!-- examples.qdoc -->
  <title>Qt 4.8: Qt Examples</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>Qt Examples</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="#qt-quick-example-code">Qt Quick Example Code</a></li>
<li class="level1"><a href="#qt-mobility-example-code">Qt Mobility Example Code</a></li>
<li class="level1"><a href="#qt-examples-by-module-or-technology">Qt Examples by Module or Technology</a></li>
</ul>
</div>
<h1 class="title">Qt Examples</h1>
<span class="subtitle"></span>
<!-- $$$all-examples-description -->
<div class="descr"> <a name="details"></a>
<p>Qt includes a set of examples that cover nearly every aspect of Qt development. They aren't meant to be impressive when you run them, but in each case the source code has been carefully written to illustrate one or more best Qt programming practices.</p>
<p>You can run the examples from the <a href="qtdemo.html">Examples and Demos Launcher</a> application (except see <a href="qdeclarativeexamples.html">QML Examples</a> for special instructions for running those examples). In addition, Qt Creator can directly run these examples through the Welcome Page.</p>
<p>The examples are listed below by functional area. Each example listed in a particular functional area is meant to illustrate how best to use Qt to do some particular task in that functional area, but the examples will often use features from other functional areas as well for completeness.</p>
<p>If you are new to Qt, you should probably start by going through the <a href="tutorials.html">Tutorials</a>, and then begin with the <a href="mainwindows-application.html">Application</a> example.</p>
<p>In addition to these examples and the <a href="tutorials.html">tutorials</a>, Qt includes a <a href="demos.html">selection of demos</a> that deliberately show off Qt's features. You might want to look at these as well.</p>
<p>These examples are provided under the terms of the <a href="http://opensource.org/licenses/bsd-license.php">Modified BSD License</a>.</p>
<a name="qt-quick-example-code"></a>
<h2>Qt Quick Example Code</h2>
<p>The <a href="qdeclarativeexamples.html">QML Examples and Demos</a> site has a dedicated page for QML examples.</p>
<a name="qt-mobility-example-code"></a>
<h2>Qt Mobility Example Code</h2>
<p>The <a href="http://doc.qt.digia.com/qtmobility/all-examples.html">Qt Mobility Examples</a> page lists examples that show how the Qt Mobility APIs might be used.</p>
<a name="qt-examples-by-module-or-technology"></a>
<h2>Qt Examples by Module or Technology</h2>
<table class="annotated">
<tr class="odd topAlign"><td class="tblName"><p><a href="examples-activeqt.html">ActiveQt Examples</a></p></td><td class="tblDescr"><p>Using ActiveX from Qt applications.</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="examples-animation.html">Animation Framework Examples</a></p></td><td class="tblDescr"><p>Doing animations with Qt.</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="examples-dbus.html">D-Bus Examples</a></p></td><td class="tblDescr"><p>Using D-Bus from Qt applications.</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="examples-desktop.html">Desktop Examples</a></p></td><td class="tblDescr"><p>Integrating your Qt application with your favorite desktop.</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="examples-dialogs.html">Dialog Examples</a></p></td><td class="tblDescr"><p>Using Qt's standard dialogs and building and using custom dialogs.</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="examples-draganddrop.html">Drag and Drop Examples</a></p></td><td class="tblDescr"><p>How to access your platform's native drag and drop functionality.</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="examples-gestures.html">Gestures Examples</a></p></td><td class="tblDescr"><p>Gesture programming examples.</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="examples-graphicsview.html">Graphics View Examples</a></p></td><td class="tblDescr"><p>Using Qt to manage and interact with a large (potentially) number of graphics items.</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="examples-helpsystem.html">Help System Examples</a></p></td><td class="tblDescr"><p>Adding interactive help to your Qt application.</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="examples-ipc.html">IPC Examples</a></p></td><td class="tblDescr"><p>Inter-Process Communication with Qt.</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="examples-itemviews.html">Item Views Examples</a></p></td><td class="tblDescr"><p>Using the model/view design pattern to separate presentation from data.</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="examples-layouts.html">Layout Examples</a></p></td><td class="tblDescr"><p>Using Qt's layout-based approach to widget management.</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="examples-mainwindow.html">Main Window Examples</a></p></td><td class="tblDescr"><p>Building applications around a main window.</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="examples-multimedia.html">Multimedia Examples</a></p></td><td class="tblDescr"><p>Audio, video, and Phonon with Qt.</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="examples-network.html">Network Examples</a></p></td><td class="tblDescr"><p>How to do network programming in Qt.</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="examples-opengl.html">OpenGL Examples</a></p></td><td class="tblDescr"><p>Accessing OpenGL from Qt.</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="examples-openvg.html">OpenVG Examples</a></p></td><td class="tblDescr"><p>Accessing OpenVG from Qt.</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="examples-painting.html">Painting Examples</a></p></td><td class="tblDescr"><p>How to use the Qt painting system.</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qdeclarativeexamples.html">QML Examples and Demos</a></p></td><td class="tblDescr"><p>Building UIs with QML</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="examples-designer.html">Qt Designer Examples</a></p></td><td class="tblDescr"><p>Using Qt Designer to build your UI.</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="examples-linguist.html">Qt Linguist Examples</a></p></td><td class="tblDescr"><p>Using Qt Linguist to internationalize your Qt application.</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="examples-script.html">Qt Script Examples</a></p></td><td class="tblDescr"><p>Using the Qt scripting environment.</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="examples-embeddedlinux.html">Qt for Embedded Linux Examples</a></p></td><td class="tblDescr"><p>Using Qt in Embedded Linux.</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="examples-richtext.html">Rich Text Examples</a></p></td><td class="tblDescr"><p>Using the document-oriented rich text engine.</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="examples-sql.html">SQL Examples</a></p></td><td class="tblDescr"><p>Accessing your SQL database from Qt.</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="examples-statemachine.html">State Machine Examples</a></p></td><td class="tblDescr"><p>Using Qt's finite state machine classes.</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="examples-threadandconcurrent.html">Threading and Concurrent Programming Examples</a></p></td><td class="tblDescr"><p>Threading and concurrent programming in Qt.</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="examples-tools.html">Tools Examples</a></p></td><td class="tblDescr"><p>Using Qt's containers, iterators, and other tool classes.</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="examples-touch.html">Touch Input Examples</a></p></td><td class="tblDescr"><p>Using Qt's touch input capability.</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="examples-uitools.html">UiTools Examples</a></p></td><td class="tblDescr"><p>Using the QtUiTools module.</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="examples-webkit.html">WebKit Examples</a></p></td><td class="tblDescr"><p>Using WebKit in your Qt application.</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="examples-widgets.html">Widget Examples</a></p></td><td class="tblDescr"><p>Lots of examples of how to use different kinds of widgets.</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="examples-xml.html">XML Examples</a></p></td><td class="tblDescr"><p>Using XML with Qt.</p></td></tr>
</table>
</div>
<!-- @@@all-examples -->
<table class="annotated">
</table>
      </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>