Sophie

Sophie

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

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" />
<!-- qdrag.cpp -->
  <title>Qt 4.8: QDrag Class 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><a href="modules.html">Modules</a></li>
<li><a href="qtgui.html">QtGui</a></li>
<li>QDrag</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="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#signals">Signals</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<h1 class="title">QDrag Class Reference</h1>
<!-- $$$QDrag-brief -->
<p>The QDrag class provides support for MIME-based drag and drop data transfer. <a href="#details">More...</a></p>
<!-- @@@QDrag -->
<pre class="cpp"> <span class="preprocessor">#include &lt;QDrag&gt;</span></pre><p><b>Inherits: </b><a href="qobject.html">QObject</a>.</p>
<ul>
<li><a href="qdrag-members.html">List of all members, including inherited members</a></li>
<li><a href="qdrag-obsolete.html">Obsolete members</a></li>
</ul>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qdrag.html#QDrag">QDrag</a></b> ( QWidget * <i>dragSource</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qdrag.html#dtor.QDrag">~QDrag</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Qt::DropAction </td><td class="memItemRight bottomAlign"><b><a href="qdrag.html#exec">exec</a></b> ( Qt::DropActions <i>supportedActions</i> = Qt::MoveAction )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Qt::DropAction </td><td class="memItemRight bottomAlign"><b><a href="qdrag.html#exec-2">exec</a></b> ( Qt::DropActions <i>supportedActions</i>, Qt::DropAction <i>defaultDropAction</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPoint </td><td class="memItemRight bottomAlign"><b><a href="qdrag.html#hotSpot">hotSpot</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QMimeData * </td><td class="memItemRight bottomAlign"><b><a href="qdrag.html#mimeData">mimeData</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPixmap </td><td class="memItemRight bottomAlign"><b><a href="qdrag.html#pixmap">pixmap</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qdrag.html#setDragCursor">setDragCursor</a></b> ( const QPixmap &amp; <i>cursor</i>, Qt::DropAction <i>action</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qdrag.html#setHotSpot">setHotSpot</a></b> ( const QPoint &amp; <i>hotspot</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qdrag.html#setMimeData">setMimeData</a></b> ( QMimeData * <i>data</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qdrag.html#setPixmap">setPixmap</a></b> ( const QPixmap &amp; <i>pixmap</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QWidget * </td><td class="memItemRight bottomAlign"><b><a href="qdrag.html#source">source</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QWidget * </td><td class="memItemRight bottomAlign"><b><a href="qdrag.html#target">target</a></b> () const</td></tr>
</table>
<ul>
<li class="fn">29 public functions inherited from <a href="qobject.html#public-functions">QObject</a></li>
</ul>
<a name="signals"></a>
<h2>Signals</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qdrag.html#actionChanged">actionChanged</a></b> ( Qt::DropAction <i>action</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qdrag.html#targetChanged">targetChanged</a></b> ( QWidget * <i>newTarget</i> )</td></tr>
</table>
<ul>
<li class="fn">1 signal inherited from <a href="qobject.html#signals">QObject</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li class="fn">1 property inherited from <a href="qobject.html#properties">QObject</a></li>
<li class="fn">1 public slot inherited from <a href="qobject.html#public-slots">QObject</a></li>
<li class="fn">7 static public members inherited from <a href="qobject.html#static-public-members">QObject</a></li>
<li class="fn">8 protected functions inherited from <a href="qobject.html#protected-functions">QObject</a></li>
</ul>
<a name="details"></a>
<!-- $$$QDrag-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QDrag class provides support for MIME-based drag and drop data transfer.</p>
<p>Drag and drop is an intuitive way for users to copy or move data around in an application, and is used in many desktop environments as a mechanism for copying data between applications. Drag and drop support in Qt is centered around the QDrag class that handles most of the details of a drag and drop operation.</p>
<p>The data to be transferred by the drag and drop operation is contained in a <a href="qmimedata.html">QMimeData</a> object. This is specified with the <a href="qdrag.html#setMimeData">setMimeData</a>() function in the following way:</p>
<pre class="cpp">         <span class="type">QDrag</span> <span class="operator">*</span>drag <span class="operator">=</span> <span class="keyword">new</span> <span class="type">QDrag</span>(<span class="keyword">this</span>);
         <span class="type"><a href="qmimedata.html">QMimeData</a></span> <span class="operator">*</span>mimeData <span class="operator">=</span> <span class="keyword">new</span> <span class="type"><a href="qmimedata.html">QMimeData</a></span>;

         mimeData<span class="operator">-</span><span class="operator">&gt;</span>setText(commentEdit<span class="operator">-</span><span class="operator">&gt;</span>toPlainText());
         drag<span class="operator">-</span><span class="operator">&gt;</span>setMimeData(mimeData);</pre>
<p>Note that <a href="qdrag.html#setMimeData">setMimeData</a>() assigns ownership of the <a href="qmimedata.html">QMimeData</a> object to the QDrag object. The QDrag must be constructed on the heap with a parent <a href="qwidget.html">QWidget</a> to ensure that Qt can clean up after the drag and drop operation has been completed.</p>
<p>A pixmap can be used to represent the data while the drag is in progress, and will move with the cursor to the drop target. This pixmap typically shows an icon that represents the MIME type of the data being transferred, but any pixmap can be set with <a href="qdrag.html#setPixmap">setPixmap</a>(). The cursor's hot spot can be given a position relative to the top-left corner of the pixmap with the <a href="qdrag.html#setHotSpot">setHotSpot</a>() function. The following code positions the pixmap so that the cursor's hot spot points to the center of its bottom edge:</p>
<pre class="cpp">     drag<span class="operator">-</span><span class="operator">&gt;</span>setHotSpot(<span class="type"><a href="qpoint.html">QPoint</a></span>(drag<span class="operator">-</span><span class="operator">&gt;</span>pixmap()<span class="operator">.</span>width()<span class="operator">/</span><span class="number">2</span><span class="operator">,</span>
                             drag<span class="operator">-</span><span class="operator">&gt;</span>pixmap()<span class="operator">.</span>height()));</pre>
<p><b>Note:</b> On X11, the pixmap may not be able to keep up with the mouse movements if the hot spot causes the pixmap to be displayed directly under the cursor.</p>
<p>The source and target widgets can be found with <a href="qdrag.html#source">source</a>() and <a href="qdrag.html#target">target</a>(). These functions are often used to determine whether drag and drop operations started and finished at the same widget, so that special behavior can be implemented.</p>
<p>QDrag only deals with the drag and drop operation itself. It is up to the developer to decide when a drag operation begins, and how a QDrag object should be constructed and used. For a given widget, it is often necessary to reimplement <a href="qwidget.html#mousePressEvent">mousePressEvent()</a> to determine whether the user has pressed a mouse button, and reimplement <a href="qwidget.html#mouseMoveEvent">mouseMoveEvent()</a> to check whether a QDrag is required.</p>
</div>
<p><b>See also </b><a href="dnd.html">Drag and Drop</a>, <a href="qclipboard.html">QClipboard</a>, <a href="qmimedata.html">QMimeData</a>, <a href="qwindowsmime.html">QWindowsMime</a>, <a href="qmacpasteboardmime.html">QMacPasteboardMime</a>, <a href="draganddrop-draggableicons.html">Draggable Icons Example</a>, <a href="draganddrop-draggabletext.html">Draggable Text Example</a>, <a href="draganddrop-dropsite.html">Drop Site Example</a>, and <a href="draganddrop-fridgemagnets.html">Fridge Magnets Example</a>.</p>
<!-- @@@QDrag -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QDrag[overload1]$$$QDragQWidget* -->
<h3 class="fn"><a name="QDrag"></a>QDrag::<span class="name">QDrag</span> ( <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>dragSource</i> )</h3>
<p>Constructs a new drag object for the widget specified by <i>dragSource</i>.</p>
<!-- @@@QDrag -->
<!-- $$$~QDrag[overload1]$$$~QDrag -->
<h3 class="fn"><a name="dtor.QDrag"></a>QDrag::<span class="name">~QDrag</span> ()</h3>
<p>Destroys the drag object.</p>
<!-- @@@~QDrag -->
<!-- $$$actionChanged[overload1]$$$actionChangedQt::DropAction -->
<h3 class="fn"><a name="actionChanged"></a><span class="type">void</span> QDrag::<span class="name">actionChanged</span> ( <span class="type"><a href="qt.html#DropAction-enum">Qt::DropAction</a></span> <i>action</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when the <i>action</i> associated with the drag changes.</p>
<p><b>See also </b><a href="qdrag.html#targetChanged">targetChanged</a>().</p>
<!-- @@@actionChanged -->
<!-- $$$exec[overload1]$$$execQt::DropActions -->
<h3 class="fn"><a name="exec"></a><span class="type"><a href="qt.html#DropAction-enum">Qt::DropAction</a></span> QDrag::<span class="name">exec</span> ( <span class="type"><a href="qt.html#DropAction-enum">Qt::DropActions</a></span> <i>supportedActions</i> = Qt::MoveAction )</h3>
<p>Starts the drag and drop operation and returns a value indicating the requested drop action when it is completed. The drop actions that the user can choose from are specified in <i>supportedActions</i>. The default proposed action will be selected among the allowed actions in the following order: Move, Copy and Link.</p>
<p><b>Note:</b> On Linux and Mac OS X, the drag and drop operation can take some time, but this function does not block the event loop. Other events are still delivered to the application while the operation is performed. On Windows, the Qt event loop is blocked while during the operation.</p>
<p>This function was introduced in Qt 4.3.</p>
<!-- @@@exec -->
<!-- $$$exec$$$execQt::DropActionsQt::DropAction -->
<h3 class="fn"><a name="exec-2"></a><span class="type"><a href="qt.html#DropAction-enum">Qt::DropAction</a></span> QDrag::<span class="name">exec</span> ( <span class="type"><a href="qt.html#DropAction-enum">Qt::DropActions</a></span> <i>supportedActions</i>, <span class="type"><a href="qt.html#DropAction-enum">Qt::DropAction</a></span> <i>defaultDropAction</i> )</h3>
<p>Starts the drag and drop operation and returns a value indicating the requested drop action when it is completed. The drop actions that the user can choose from are specified in <i>supportedActions</i>.</p>
<p>The <i>defaultDropAction</i> determines which action will be proposed when the user performs a drag without using modifier keys.</p>
<p><b>Note:</b> On Linux and Mac OS X, the drag and drop operation can take some time, but this function does not block the event loop. Other events are still delivered to the application while the operation is performed. On Windows, the Qt event loop is blocked during the operation. However, <a href="qdrag.html#exec">QDrag::exec</a>() on Windows causes processEvents() to be called frequently to keep the GUI responsive. If any loops or operations are called while a drag operation is active, it will block the drag operation.</p>
<p>This function was introduced in Qt 4.3.</p>
<!-- @@@exec -->
<!-- $$$hotSpot[overload1]$$$hotSpot -->
<h3 class="fn"><a name="hotSpot"></a><span class="type"><a href="qpoint.html">QPoint</a></span> QDrag::<span class="name">hotSpot</span> () const</h3>
<p>Returns the position of the hot spot relative to the top-left corner of the cursor.</p>
<p><b>See also </b><a href="qdrag.html#setHotSpot">setHotSpot</a>().</p>
<!-- @@@hotSpot -->
<!-- $$$mimeData[overload1]$$$mimeData -->
<h3 class="fn"><a name="mimeData"></a><span class="type"><a href="qmimedata.html">QMimeData</a></span> * QDrag::<span class="name">mimeData</span> () const</h3>
<p>Returns the MIME data that is encapsulated by the drag object.</p>
<p><b>See also </b><a href="qdrag.html#setMimeData">setMimeData</a>().</p>
<!-- @@@mimeData -->
<!-- $$$pixmap[overload1]$$$pixmap -->
<h3 class="fn"><a name="pixmap"></a><span class="type"><a href="qpixmap.html">QPixmap</a></span> QDrag::<span class="name">pixmap</span> () const</h3>
<p>Returns the pixmap used to represent the data in a drag and drop operation.</p>
<p><b>See also </b><a href="qdrag.html#setPixmap">setPixmap</a>().</p>
<!-- @@@pixmap -->
<!-- $$$setDragCursor[overload1]$$$setDragCursorconstQPixmap&Qt::DropAction -->
<h3 class="fn"><a name="setDragCursor"></a><span class="type">void</span> QDrag::<span class="name">setDragCursor</span> ( const <span class="type"><a href="qpixmap.html">QPixmap</a></span> &amp; <i>cursor</i>, <span class="type"><a href="qt.html#DropAction-enum">Qt::DropAction</a></span> <i>action</i> )</h3>
<p>Sets the drag <i>cursor</i> for the <i>action</i>. This allows you to override the default native cursors. To revert to using the native cursor for <i>action</i> pass in a null <a href="qpixmap.html">QPixmap</a> as <i>cursor</i>.</p>
<p>The <i>action</i> can only be CopyAction, MoveAction or LinkAction. All other values of DropAction are ignored.</p>
<!-- @@@setDragCursor -->
<!-- $$$setHotSpot[overload1]$$$setHotSpotconstQPoint& -->
<h3 class="fn"><a name="setHotSpot"></a><span class="type">void</span> QDrag::<span class="name">setHotSpot</span> ( const <span class="type"><a href="qpoint.html">QPoint</a></span> &amp; <i>hotspot</i> )</h3>
<p>Sets the position of the hot spot relative to the top-left corner of the pixmap used to the point specified by <i>hotspot</i>.</p>
<p><b>Note:</b> on X11, the pixmap may not be able to keep up with the mouse movements if the hot spot causes the pixmap to be displayed directly under the cursor.</p>
<p><b>See also </b><a href="qdrag.html#hotSpot">hotSpot</a>().</p>
<!-- @@@setHotSpot -->
<!-- $$$setMimeData[overload1]$$$setMimeDataQMimeData* -->
<h3 class="fn"><a name="setMimeData"></a><span class="type">void</span> QDrag::<span class="name">setMimeData</span> ( <span class="type"><a href="qmimedata.html">QMimeData</a></span> * <i>data</i> )</h3>
<p>Sets the data to be sent to the given MIME <i>data</i>. Ownership of the data is transferred to the <a href="qdrag.html">QDrag</a> object.</p>
<p><b>See also </b><a href="qdrag.html#mimeData">mimeData</a>().</p>
<!-- @@@setMimeData -->
<!-- $$$setPixmap[overload1]$$$setPixmapconstQPixmap& -->
<h3 class="fn"><a name="setPixmap"></a><span class="type">void</span> QDrag::<span class="name">setPixmap</span> ( const <span class="type"><a href="qpixmap.html">QPixmap</a></span> &amp; <i>pixmap</i> )</h3>
<p>Sets <i>pixmap</i> as the pixmap used to represent the data in a drag and drop operation. You can only set a pixmap before the drag is started.</p>
<p><b>See also </b><a href="qdrag.html#pixmap">pixmap</a>().</p>
<!-- @@@setPixmap -->
<!-- $$$source[overload1]$$$source -->
<h3 class="fn"><a name="source"></a><span class="type"><a href="qwidget.html">QWidget</a></span> * QDrag::<span class="name">source</span> () const</h3>
<p>Returns the source of the drag object. This is the widget where the drag and drop operation originated.</p>
<!-- @@@source -->
<!-- $$$target[overload1]$$$target -->
<h3 class="fn"><a name="target"></a><span class="type"><a href="qwidget.html">QWidget</a></span> * QDrag::<span class="name">target</span> () const</h3>
<p>Returns the target of the drag and drop operation. This is the widget where the drag object was dropped.</p>
<!-- @@@target -->
<!-- $$$targetChanged[overload1]$$$targetChangedQWidget* -->
<h3 class="fn"><a name="targetChanged"></a><span class="type">void</span> QDrag::<span class="name">targetChanged</span> ( <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>newTarget</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when the target of the drag and drop operation changes, with <i>newTarget</i> the new target.</p>
<p><b>See also </b><a href="qdrag.html#target">target</a>() and <a href="qdrag.html#actionChanged">actionChanged</a>().</p>
<!-- @@@targetChanged -->
</div>
      </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>