6
6
td.postheader { font-family: sans-serif }
7
7
tr.address { font-family: sans-serif }
8
8
body { background: #ffffff; color: black; }
9
</style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr /><td align="left" valign="top" width="32"><img align="left" border="0" height="32" src="images/rb-logo.png" width="32" /></td><td width="1">  </td><td class="postheader" valign="center"><a href="../pyqt4ref.html"><font color="#004faf">Home</font></a> · <a href="classes.html"><font color="#004faf">All Classes</font></a> · <a href="modules.html"><font color="#004faf">Modules</font></a></td></table><h1 align="center">QMimeSource Class Reference<br /><sup><sup>[<a href="qtgui.html">QtGui</a> module]</sup></sup></h1><p>The QMimeSource class is an abstraction of objects that provided formatted data of a certain MIME type. <a href="#details">More...</a></p>
10
<p>Inherited by <a href="qdropevent.html">QDropEvent</a>.</p><h3>Methods</h3><ul><li><div class="fn" /><b><a href="qmimesource.html#QMimeSource">__init__</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qmimesource.html#QMimeSource-2">__init__</a></b> (<i>self</i>, QMimeSource)</li><li><div class="fn" />QByteArray <b><a href="qmimesource.html#encodedData">encodedData</a></b> (<i>self</i>, str)</li><li><div class="fn" />str <b><a href="qmimesource.html#format">format</a></b> (<i>self</i>, int <i>i</i> = 0)</li><li><div class="fn" />bool <b><a href="qmimesource.html#provides">provides</a></b> (<i>self</i>, str)</li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The QMimeSource class is an abstraction of objects that provided formatted data of a certain MIME type.</p>
11
<p>The preferred approach to drag and drop is to use <a href="qdrag.html">QDrag</a> in conjunction with <a href="qmimedata.html">QMimeData</a>. See <a href="dnd.html">Drag and Drop</a> for details.</p>
12
<p>See also <a href="qmimedata.html">QMimeData</a> and <a href="qdrag.html">QDrag</a>.</p>
13
<hr /><h2>Method Documentation</h2><h3 class="fn"><a name="QMimeSource" />QMimeSource.__init__ (<i>self</i>)</h3><h3 class="fn"><a name="QMimeSource-2" />QMimeSource.__init__ (<i>self</i>, <a href="qmimesource.html">QMimeSource</a>)</h3><h3 class="fn"><a name="encodedData" /><a href="qbytearray.html">QByteArray</a> QMimeSource.encodedData (<i>self</i>, str)</h3><p>This method is abstract and should be reimplemented in any sub-class.</p><p>Returns the encoded data of this object in the specified MIME <i>format</i>.</p>
14
<a name="//apple_ref/cpp/instm/QMimeSource/format" />
9
</style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr /><td align="left" valign="top" width="32"><img align="left" border="0" height="32" src="images/rb-logo.png" width="32" /></td><td width="1">  </td><td class="postheader" valign="center"><a href="../pyqt4ref.html"><font color="#004faf">Home</font></a> · <a href="classes.html"><font color="#004faf">All Classes</font></a> · <a href="modules.html"><font color="#004faf">Modules</font></a></td></table><h1 align="center">QMimeSource Class Reference<br /><sup><sup>[<a href="qtgui.html">QtGui</a> module]</sup></sup></h1><p>The QMimeSource class is an abstraction of objects that provided
10
formatted data of a certain MIME type. <a href="#details">More...</a></p>
12
<p>Inherited by <a href="qdropevent.html">QDropEvent</a>.</p><h3>Methods</h3><ul><li><div class="fn" /><b><a href="qmimesource.html#QMimeSource">__init__</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qmimesource.html#QMimeSource-2">__init__</a></b> (<i>self</i>, QMimeSource)</li><li><div class="fn" />QByteArray <b><a href="qmimesource.html#encodedData">encodedData</a></b> (<i>self</i>, str)</li><li><div class="fn" />str <b><a href="qmimesource.html#format">format</a></b> (<i>self</i>, int <i>i</i> = 0)</li><li><div class="fn" />bool <b><a href="qmimesource.html#provides">provides</a></b> (<i>self</i>, str)</li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The QMimeSource class is an abstraction of objects that provided
13
formatted data of a certain MIME type.</p>
14
<p>The preferred approach to drag and drop is to use <a href="qdrag.html">QDrag</a> in conjunction with <a href="qmimedata.html">QMimeData</a>. See <a href="dnd.html">Drag and
15
Drop</a> for details.</p>
16
<hr /><h2>Method Documentation</h2><h3 class="fn"><a name="QMimeSource" />QMimeSource.__init__ (<i>self</i>)</h3><h3 class="fn"><a name="QMimeSource-2" />QMimeSource.__init__ (<i>self</i>, <a href="qmimesource.html">QMimeSource</a>)</h3><h3 class="fn"><a name="encodedData" /><a href="qbytearray.html">QByteArray</a> QMimeSource.encodedData (<i>self</i>, str)</h3><p>This method is abstract and should be reimplemented in any sub-class.</p><p>Returns the encoded data of this object in the specified MIME
15
20
<h3 class="fn"><a name="format" />str QMimeSource.format (<i>self</i>, int <i>i</i> = 0)</h3><p>This method is abstract and should be reimplemented in any sub-class.</p><p>Returns the (<i>i</i> - 1)-th supported MIME format, or 0.</p>
16
<a name="//apple_ref/cpp/instm/QMimeSource/provides" />
17
<h3 class="fn"><a name="provides" />bool QMimeSource.provides (<i>self</i>, str)</h3><p>Returns true if the object can provide the data in format <i>mimeType</i>; otherwise returns false.</p>
18
<p>If you inherit from <a class="obsolete" href="qmimesource.html">QMimeSource</a>, for consistency reasons it is better to implement the more abstract canDecode() functions such as QTextDrag.canDecode() and QImageDrag.canDecode().</p>
19
<p /><address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt 4.7.7 for X11</td><td align="center" width="50%">Copyright © <a href="http://www.riverbankcomputing.com">Riverbank Computing Ltd</a> and <a href="http://www.qtsoftware.com">Nokia</a> 2010</td><td align="right" width="25%">Qt 4.6.3</td></tr></table></div></address></body></html>
b'\\ No newline at end of file'
23
<h3 class="fn"><a name="provides" />bool QMimeSource.provides (<i>self</i>, str)</h3><p>Returns true if the object can provide the data in format
24
<i>mimeType</i>; otherwise returns false.</p>
25
<p>If you inherit from <a class="obsolete" href="qmimesource.html">QMimeSource</a>, for consistency reasons it is better to
26
implement the more abstract canDecode() functions such as
27
QTextDrag.canDecode() and QImageDrag.canDecode().</p>
28
<address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt 4.8.1 for X11</td><td align="center" width="50%">Copyright © <a href="http://www.riverbankcomputing.com">Riverbank Computing Ltd</a> and <a href="http://www.qtsoftware.com">Nokia</a> 2010</td><td align="right" width="25%">Qt 4.7.0</td></tr></table></div></address></body></html>
b'\\ No newline at end of file'