Sophie

Sophie

distrib > Mandriva > current > i586 > media > main-updates > by-pkgid > 8e6051afcdb111a0317a58fb64c2abf5 > files > 2672

qt4-doc-4.6.3-0.2mdv2010.2.i586.rpm

<?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">
<!-- itemviewspuzzle.qdoc -->
<head>
  <title>Qt 4.6: Item Views Puzzle 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"><a href="http://qt.nokia.com/"><img src="images/qt-logo.png" align="left" border="0" /></a></td>
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">All&nbsp;Functions</font></a>&nbsp;&middot; <a href="overviews.html"><font color="#004faf">Overviews</font></a></td></tr></table><h1 class="title">Item Views Puzzle Example<br /><span class="subtitle"></span>
</h1>
<p>Files:</p>
<ul>
<li><a href="itemviews-puzzle-mainwindow-cpp.html">itemviews/puzzle/mainwindow.cpp</a></li>
<li><a href="itemviews-puzzle-mainwindow-h.html">itemviews/puzzle/mainwindow.h</a></li>
<li><a href="itemviews-puzzle-piecesmodel-cpp.html">itemviews/puzzle/piecesmodel.cpp</a></li>
<li><a href="itemviews-puzzle-piecesmodel-h.html">itemviews/puzzle/piecesmodel.h</a></li>
<li><a href="itemviews-puzzle-puzzlewidget-cpp.html">itemviews/puzzle/puzzlewidget.cpp</a></li>
<li><a href="itemviews-puzzle-puzzlewidget-h.html">itemviews/puzzle/puzzlewidget.h</a></li>
<li><a href="itemviews-puzzle-main-cpp.html">itemviews/puzzle/main.cpp</a></li>
<li><a href="itemviews-puzzle-puzzle-pro.html">itemviews/puzzle/puzzle.pro</a></li>
<li><a href="itemviews-puzzle-puzzle-qrc.html">itemviews/puzzle/puzzle.qrc</a></li>
</ul>
<p>The Puzzle example shows how to enable drag and drop with a custom model to allow items to be transferred between a view and another widget.</p>
<p align="center"><img src="images/itemviewspuzzle-example.png" /></p><p>This example is an implementation of a simple jigsaw puzzle game using the built-in support for drag and drop provided by Qt's model/view framework. The <a href="draganddrop-puzzle.html">Drag and Drop Puzzle</a> example shows many of the same features, but takes an alternative approach that uses Qt's drag and drop API at the application level to handle drag and drop operations.</p>
<p /><address><hr /><div align="center">
<table width="100%" cellspacing="0" border="0"><tr class="address">
<td width="40%" align="left">Copyright &copy; 2010 Nokia Corporation and/or its subsidiary(-ies)</td>
<td width="20%" align="center"><a href="trademarks.html">Trademarks</a></td>
<td width="40%" align="right"><div align="right">Qt 4.6.3</div></td>
</tr></table></div></address></body>
</html>