mirror of
https://github.com/QuasarApp/qt-solutions.git
synced 2025-05-02 16:29:33 +00:00
50 lines
3.4 KiB
HTML
50 lines
3.4 KiB
HTML
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||
|
<!DOCTYPE html
|
||
|
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
|
||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||
|
<!-- canvas_variant.qdoc -->
|
||
|
<head>
|
||
|
<title>Variant Based Canvas Example</title>
|
||
|
<link href="classic.css" rel="stylesheet" type="text/css" />
|
||
|
</head>
|
||
|
<body>
|
||
|
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
||
|
<tr>
|
||
|
<td align="left" valign="top" width="32"><img src="images/qt-logo.png" align="left" width="57" height="67" border="0" /></td>
|
||
|
<td width="1"> </td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a></td>
|
||
|
</tr></table><h1 class="title">Variant Based Canvas Example<br /><span class="subtitle"></span>
|
||
|
</h1>
|
||
|
<p>This example demonstrates how to use the <a href="qtvariantpropertymanager.html">QtVariantPropertyManager</a> convenience class for all property types. In this approach only one instance of the property manager class is used, and the developer interfaces with a dynamic API based on <a href="http://qt.nokia.com/doc/4.6/qvariant.html">QVariant</a>.</p>
|
||
|
<p align="center"><img src="images/canvas_variant.png" /></p><p>The example presents a canvas filled up with items of different types, and a tree property browser which displays the currently selected item's properties.</p>
|
||
|
<p>All item types has a few common properties like "Position X", "Position Y" or "Position Z", but each type also adds its own type-specific properties (e.g. the text items provide "Text" and "Font" properties, and the line items provide a "Vector" property).</p>
|
||
|
<p>The source files can be found in examples/canvas_variant directory of the package.</p>
|
||
|
<a name="third-party-copyright-notice"></a>
|
||
|
<h2>Third party copyright notice</h2>
|
||
|
<p>The canvas class used in this example contains third party code with the following copyright notice:</p>
|
||
|
<div style="padding: 0.5em; background: #e0e0e0; color: black"><pre> Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
|
||
|
|
||
|
All Rights Reserved
|
||
|
|
||
|
Permission to use, copy, modify, and distribute this software and its
|
||
|
documentation for any purpose and without fee is hereby granted,
|
||
|
provided that the above copyright notice appear in all copies and that
|
||
|
both that copyright notice and this permission notice appear in
|
||
|
supporting documentation, and that the name of Digital not be
|
||
|
used in advertising or publicity pertaining to distribution of the
|
||
|
software without specific, written prior permission.
|
||
|
|
||
|
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
|
||
|
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
|
||
|
DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
|
||
|
ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
||
|
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
||
|
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
||
|
SOFTWARE.</pre>
|
||
|
</div><p /><address><hr /><div align="center">
|
||
|
<table width="100%" cellspacing="0" border="0"><tr class="address">
|
||
|
<td width="30%" align="left">Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies)</td>
|
||
|
<td width="40%" align="center"><a href="http://qt.nokia.com/doc/trademarks.html">Trademarks</a></td>
|
||
|
<td width="30%" align="right"><div align="right">Qt Solutions</div></td>
|
||
|
</tr></table></div></address></body>
|
||
|
</html>
|