Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-updates > by-pkgid > 845e36bb3ecce380666d628d88446962 > files > 289

qtdatavis3d5-doc-5.12.6-1.mga7.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>Data.qml Example File | Qt Data Visualization 5.12.6</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="main">
    <div class="main-rounded">
      <div class="navigationbar">
        <table><tr>
<td >Qt 5.12</td><td ><a href="qtdatavisualization-index.html">Qt Data Visualization</a></td><td ><a href="qtdatavisualization-qmllegend-example.html">Qt Quick 2 Legend Example</a></td><td >Data.qml Example File</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right"><a href="qtdatavisualization-index.html">Qt Data Visualization | Commercial or GPLv3</a></td>
        </tr></table>
      </div>
    </div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar"><div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">Data.qml Example File</h1>
<span class="subtitle">qmllegend/qml/qmllegend/Data.qml</span>
<!-- $$$qmllegend/qml/qmllegend/Data.qml-description -->
<div class="descr"> <a name="details"></a>
<pre class="qml">

  /****************************************************************************
  **
  ** Copyright (C) 2016 The Qt Company Ltd.
  ** Contact: https://www.qt.io/licensing/
  **
  ** This file is part of the Qt Data Visualization module of the Qt Toolkit.
  **
  ** $QT_BEGIN_LICENSE:GPL$
  ** Commercial License Usage
  ** Licensees holding valid commercial Qt licenses may use this file in
  ** accordance with the commercial license agreement provided with the
  ** Software or, alternatively, in accordance with the terms contained in
  ** a written agreement between you and The Qt Company. For licensing terms
  ** and conditions see https://www.qt.io/terms-conditions. For further
  ** information use the contact form at https://www.qt.io/contact-us.
  **
  ** GNU General Public License Usage
  ** Alternatively, this file may be used under the terms of the GNU
  ** General Public License version 3 or (at your option) any later version
  ** approved by the KDE Free Qt Foundation. The licenses are as published by
  ** the Free Software Foundation and appearing in the file LICENSE.GPL3
  ** included in the packaging of this file. Please review the following
  ** information to ensure the GNU General Public License requirements will
  ** be met: https://www.gnu.org/licenses/gpl-3.0.html.
  **
  ** $QT_END_LICENSE$
  **
  ****************************************************************************/

  import QtQuick 2.1

  Item {
      property alias model: dataModel

      ListModel {
          id: dataModel
          ListElement{ year: "2010"; month: "Jan"; s1: "-14"; s2: "-15"; s3: "-15" }
          ListElement{ year: "2010"; month: "Feb"; s1: "-15"; s2: "-16"; s3: "-9" }
          ListElement{ year: "2010"; month: "Mar"; s1: "-7";  s2: "-4";  s3: "-2" }
          ListElement{ year: "2010"; month: "Apr"; s1: "3";   s2: "2";   s3: "2" }
          ListElement{ year: "2010"; month: "May"; s1: "7";   s2: "9";   s3: "10" }
          ListElement{ year: "2010"; month: "Jun"; s1: "12";  s2: "13";  s3: "22" }
          ListElement{ year: "2010"; month: "Jul"; s1: "18";  s2: "19";  s3: "24" }
          ListElement{ year: "2010"; month: "Aug"; s1: "15";  s2: "13";  s3: "16" }
          ListElement{ year: "2010"; month: "Sep"; s1: "6";   s2: "3";   s3: "4" }
          ListElement{ year: "2010"; month: "Oct"; s1: "1";   s2: "2";   s3: "-2" }
          ListElement{ year: "2010"; month: "Nov"; s1: "-2";  s2: "-5";  s3: "-6" }
          ListElement{ year: "2010"; month: "Dec"; s1: "-3";  s2: "-3";  s3: "-9" }

          ListElement{ year: "2011"; month: "Jan"; s1: "-12"; s2: "-11"; s3: "-14" }
          ListElement{ year: "2011"; month: "Feb"; s1: "-13"; s2: "-12"; s3: "-10" }
          ListElement{ year: "2011"; month: "Mar"; s1: "-6";  s2: "-4";  s3: "-3" }
          ListElement{ year: "2011"; month: "Apr"; s1: "0";   s2: "1";   s3: "3" }
          ListElement{ year: "2011"; month: "May"; s1: "4";   s2: "12";  s3: "11" }
          ListElement{ year: "2011"; month: "Jun"; s1: "9";   s2: "17";  s3: "23" }
          ListElement{ year: "2011"; month: "Jul"; s1: "15";  s2: "22";  s3: "25" }
          ListElement{ year: "2011"; month: "Aug"; s1: "12";  s2: "15";  s3: "12" }
          ListElement{ year: "2011"; month: "Sep"; s1: "2";   s2: "4";   s3: "7" }
          ListElement{ year: "2011"; month: "Oct"; s1: "-2";  s2: "4";   s3: "-4" }
          ListElement{ year: "2011"; month: "Nov"; s1: "-4";  s2: "-8";  s3: "-5" }
          ListElement{ year: "2011"; month: "Dec"; s1: "-6";  s2: "-6";  s3: "-7" }

          ListElement{ year: "2012"; month: "Jan"; s1: "-10"; s2: "-19"; s3: "-11" }
          ListElement{ year: "2012"; month: "Feb"; s1: "-11"; s2: "-17"; s3: "-4" }
          ListElement{ year: "2012"; month: "Mar"; s1: "-6";  s2: "-3";  s3: "-1" }
          ListElement{ year: "2012"; month: "Apr"; s1: "5";   s2: "1";   s3: "2" }
          ListElement{ year: "2012"; month: "May"; s1: "9";   s2: "12";  s3: "13" }
          ListElement{ year: "2012"; month: "Jun"; s1: "11";  s2: "16";  s3: "26" }
          ListElement{ year: "2012"; month: "Jul"; s1: "18";  s2: "20";  s3: "23" }
          ListElement{ year: "2012"; month: "Aug"; s1: "19";  s2: "12";  s3: "12" }
          ListElement{ year: "2012"; month: "Sep"; s1: "9";   s2: "1";   s3: "3" }
          ListElement{ year: "2012"; month: "Oct"; s1: "-3";  s2: "2";   s3: "-1" }
          ListElement{ year: "2012"; month: "Nov"; s1: "-5";  s2: "-4";  s3: "-3" }
          ListElement{ year: "2012"; month: "Dec"; s1: "-7";  s2: "-2";  s3: "-4" }

          ListElement{ year: "2013"; month: "Jan"; s1: "-18"; s2: "-19"; s3: "-19" }
          ListElement{ year: "2013"; month: "Feb"; s1: "-17"; s2: "-19"; s3: "-12" }
          ListElement{ year: "2013"; month: "Mar"; s1: "-9";  s2: "-6";  s3: "-5" }
          ListElement{ year: "2013"; month: "Apr"; s1: "0";   s2: "0";   s3: "0" }
          ListElement{ year: "2013"; month: "May"; s1: "4";   s2: "7";   s3: "9" }
          ListElement{ year: "2013"; month: "Jun"; s1: "9";   s2: "11";  s3: "18" }
          ListElement{ year: "2013"; month: "Jul"; s1: "13";  s2: "15";  s3: "20" }
          ListElement{ year: "2013"; month: "Aug"; s1: "10";  s2: "11";  s3: "13" }
          ListElement{ year: "2013"; month: "Sep"; s1: "3";   s2: "1";   s3: "2" }
          ListElement{ year: "2013"; month: "Oct"; s1: "0";   s2: "1";   s3: "-4" }
          ListElement{ year: "2013"; month: "Nov"; s1: "-5";  s2: "-6";  s3: "-5" }
          ListElement{ year: "2013"; month: "Dec"; s1: "-6";  s2: "-7";  s3: "-10" }
      }
  }

</pre>
</div>
<!-- @@@qmllegend/qml/qmllegend/Data.qml -->
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2019 The Qt Company Ltd.
   Documentation contributions included herein are the copyrights of
   their respective owners.<br/>    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.<br/>    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. </p>
</div>
</body>
</html>