<class name="QClipboard" doc="/**
&lt;p&gt;The &lt;a href=&quot;QClipboard.html&quot;&gt;&lt;tt&gt;QClipboard&lt;/tt&gt;&lt;/a&gt; class provides access to the window system clipboard.&lt;/p&gt;
&lt;p&gt;The clipboard offers a simple mechanism to copy and paste data between applications.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QClipboard.html&quot;&gt;&lt;tt&gt;QClipboard&lt;/tt&gt;&lt;/a&gt; supports the same data types that &lt;a href=&quot;QDrag.html&quot;&gt;&lt;tt&gt;QDrag&lt;/tt&gt;&lt;/a&gt; does, and uses similar mechanisms. For advanced clipboard usage read &lt;a href=&quot;%2E%2E/dnd.html&quot;&gt;Drag and Drop&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;There is a single &lt;a href=&quot;QClipboard.html&quot;&gt;&lt;tt&gt;QClipboard&lt;/tt&gt;&lt;/a&gt; object in an application, accessible as QApplication::clipboard().&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    QClipboard *clipboard = QApplication::clipboard();
    QString originalText = clipboard-&amp;gt;text();
    ...
    clipboard-&amp;gt;setText(newText);&lt;/pre&gt;
&lt;p&gt;&lt;a href=&quot;QClipboard.html&quot;&gt;&lt;tt&gt;QClipboard&lt;/tt&gt;&lt;/a&gt; features some convenience functions to access common data types: &lt;a href=&quot;QClipboard.html#setText(java.lang.String, com.trolltech.qt.gui.QClipboard.Mode)&quot;&gt;&lt;tt&gt;setText&lt;/tt&gt;&lt;/a&gt; allows the exchange of Unicode text and &lt;a href=&quot;QClipboard.html#setPixmap(com.trolltech.qt.gui.QPixmap, com.trolltech.qt.gui.QClipboard.Mode)&quot;&gt;&lt;tt&gt;setPixmap&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QClipboard.html#setImage(com.trolltech.qt.gui.QImage, com.trolltech.qt.gui.QClipboard.Mode)&quot;&gt;&lt;tt&gt;setImage&lt;/tt&gt;&lt;/a&gt; allows the exchange of QPixmaps and QImages between applications. The &lt;a href=&quot;QClipboard.html#setMimeData(com.trolltech.qt.gui.QMimeData, com.trolltech.qt.gui.QClipboard.Mode)&quot;&gt;&lt;tt&gt;setMimeData&lt;/tt&gt;&lt;/a&gt; function is the ultimate in flexibility: it allows you to add any &lt;a href=&quot;QMimeData.html&quot;&gt;&lt;tt&gt;QMimeData&lt;/tt&gt;&lt;/a&gt; into the clipboard. There are corresponding getters for each of these, e.g&amp;#x2e; &lt;a href=&quot;QClipboard.html#text(com.trolltech.qt.gui.QClipboard.Mode)&quot;&gt;&lt;tt&gt;text&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QClipboard.html#image(com.trolltech.qt.gui.QClipboard.Mode)&quot;&gt;&lt;tt&gt;image&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QClipboard.html#pixmap(com.trolltech.qt.gui.QClipboard.Mode)&quot;&gt;&lt;tt&gt;pixmap&lt;/tt&gt;&lt;/a&gt;. You can clear the clipboard by calling &lt;a href=&quot;QClipboard.html#clear(com.trolltech.qt.gui.QClipboard.Mode)&quot;&gt;&lt;tt&gt;clear&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;a name=&quot;notes-for-x11-users&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Notes for X11 Users&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;The X11 Window System has the concept of a separate selection and clipboard. When text is selected, it is immediately available as the global mouse selection. The global mouse selection may later be copied to the clipboard. By convention, the middle mouse button is used to paste the global mouse selection.&lt;/li&gt;
&lt;li&gt;X11 also has the concept of ownership; if you change the selection within a window, X11 will only notify the owner and the previous owner of the change, i.e&amp;#x2e; it will not notify all applications that the selection or clipboard data changed.&lt;/li&gt;
&lt;li&gt;Lastly, the X11 clipboard is event driven, i.e&amp;#x2e; the clipboard will not function properly if the event loop is not running. Similarly, it is recommended that the contents of the clipboard are stored or retrieved in direct response to user-input events, e.g&amp;#x2e; mouse button or key presses and releases. You should not store or retrieve the clipboard contents in response to timer or non-user-input events.&lt;/li&gt;
&lt;/ul&gt;
&lt;a name=&quot;notes-for-mac-os-x-users&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Notes for Mac OS X Users&lt;/h3&gt;
&lt;p&gt;Mac OS X supports a separate find buffer that holds the current search string in Find operations. This find clipboard can be accessed by specifying the &lt;a href=&quot;QClipboard.html#Mode-enum&quot;&gt;&lt;tt&gt;FindBuffer&lt;/tt&gt;&lt;/a&gt; mode.&lt;/p&gt;
&lt;a name=&quot;notes-for-windows-and-mac-os-x-users&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Notes for Windows and Mac OS X Users&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Windows and Mac OS X do not support the global mouse selection; they only supports the global clipboard, i.e&amp;#x2e; they only add text to the clipboard when an explicit copy or cut is made.&lt;/li&gt;
&lt;li&gt;Windows and Mac OS X does not have the concept of ownership; the clipboard is a fully global resource so all applications are notified of changes.&lt;/li&gt;
&lt;/ul&gt;

@see &lt;a href=&quot;QApplication.html&quot;&gt;&lt;tt&gt;QApplication&lt;/tt&gt;&lt;/a&gt; */">
    <signal name="protected final void changed(com.trolltech.qt.gui.QClipboard.Mode mode)" doc="/**
&lt;p&gt;This signal is emitted when the data for the given clipboard &lt;tt&gt;mode&lt;/tt&gt; is changed.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(com.trolltech.qt.gui.QClipboard.Mode mode)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QClipboard.html#dataChanged()&quot;&gt;&lt;tt&gt;dataChanged&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QClipboard.html#selectionChanged()&quot;&gt;&lt;tt&gt;selectionChanged&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QClipboard.html#findBufferChanged()&quot;&gt;&lt;tt&gt;findBufferChanged&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void dataChanged()" doc="/**
&lt;p&gt;This signal is emitted when the clipboard data is changed.&lt;/p&gt;
&lt;p&gt;On Mac OS X and with Qt version 4.3 or higher, clipboard changes made by other applications will only be detected when the application is activated.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signature:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QClipboard.html#findBufferChanged()&quot;&gt;&lt;tt&gt;findBufferChanged&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QClipboard.html#selectionChanged()&quot;&gt;&lt;tt&gt;selectionChanged&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QClipboard.html#changed(com.trolltech.qt.gui.QClipboard.Mode)&quot;&gt;&lt;tt&gt;changed&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void findBufferChanged()" doc="/**
&lt;p&gt;This signal is emitted when the find buffer is changed. This only applies to Mac OS X.&lt;/p&gt;
&lt;p&gt;With Qt version 4.3 or higher, clipboard changes made by other applications will only be detected when the application is activated.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signature:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QClipboard.html#dataChanged()&quot;&gt;&lt;tt&gt;dataChanged&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QClipboard.html#selectionChanged()&quot;&gt;&lt;tt&gt;selectionChanged&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QClipboard.html#changed(com.trolltech.qt.gui.QClipboard.Mode)&quot;&gt;&lt;tt&gt;changed&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void selectionChanged()" doc="/**
&lt;p&gt;This signal is emitted when the selection is changed. This only applies to windowing systems that support selections, e.g&amp;#x2e; X11. Windows and Mac OS X don't support selections.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signature:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QClipboard.html#dataChanged()&quot;&gt;&lt;tt&gt;dataChanged&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QClipboard.html#findBufferChanged()&quot;&gt;&lt;tt&gt;findBufferChanged&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QClipboard.html#changed(com.trolltech.qt.gui.QClipboard.Mode)&quot;&gt;&lt;tt&gt;changed&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <method name="public final void clear(com.trolltech.qt.gui.QClipboard.Mode mode)" doc="/**
&lt;p&gt;Clear the clipboard contents.&lt;/p&gt;
&lt;p&gt;The &lt;tt&gt;mode&lt;/tt&gt; argument is used to control which part of the system clipboard is used. If &lt;tt&gt;mode&lt;/tt&gt; is QClipboard::Clipboard, this function clears the the global clipboard contents. If &lt;tt&gt;mode&lt;/tt&gt; is QClipboard::Selection, this function clears the global mouse selection contents. If &lt;tt&gt;mode&lt;/tt&gt; is QClipboard::FindBuffer, this function clears the search string buffer.&lt;/p&gt;

@see &lt;tt&gt;QClipboard::Mode&lt;/tt&gt;
@see &lt;a href=&quot;QClipboard.html#supportsSelection()&quot;&gt;&lt;tt&gt;supportsSelection&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void clear()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QClipboard.html#clear(com.trolltech.qt.gui.QClipboard.Mode)&quot;&gt;clear&lt;/tt&gt;&lt;/a&gt;(Clipboard). */"/>
    <method name="public final com.trolltech.qt.gui.QImage image(com.trolltech.qt.gui.QClipboard.Mode mode)" doc="/**
&lt;p&gt;Returns the clipboard image, or returns a null image if the clipboard does not contain an image or if it contains an image in an unsupported image format.&lt;/p&gt;
&lt;p&gt;The &lt;tt&gt;mode&lt;/tt&gt; argument is used to control which part of the system clipboard is used. If &lt;tt&gt;mode&lt;/tt&gt; is QClipboard::Clipboard, the image is retrieved from the global clipboard. If &lt;tt&gt;mode&lt;/tt&gt; is QClipboard::Selection, the image is retrieved from the global mouse selection.&lt;/p&gt;

@see &lt;a href=&quot;QClipboard.html#setImage(com.trolltech.qt.gui.QImage, com.trolltech.qt.gui.QClipboard.Mode)&quot;&gt;&lt;tt&gt;setImage&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QClipboard.html#pixmap(com.trolltech.qt.gui.QClipboard.Mode)&quot;&gt;&lt;tt&gt;pixmap&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QClipboard.html#mimeData(com.trolltech.qt.gui.QClipboard.Mode)&quot;&gt;&lt;tt&gt;mimeData&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QImage::isNull&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QImage image()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QClipboard.html#image(com.trolltech.qt.gui.QClipboard.Mode)&quot;&gt;image&lt;/tt&gt;&lt;/a&gt;(Clipboard). */"/>
    <method name="public final com.trolltech.qt.gui.QMimeData mimeData(com.trolltech.qt.gui.QClipboard.Mode mode)" doc="/**
&lt;p&gt;Returns a reference to a &lt;a href=&quot;QMimeData.html&quot;&gt;&lt;tt&gt;QMimeData&lt;/tt&gt;&lt;/a&gt; representation of the current clipboard data.&lt;/p&gt;
&lt;p&gt;The &lt;tt&gt;mode&lt;/tt&gt; argument is used to control which part of the system clipboard is used. If &lt;tt&gt;mode&lt;/tt&gt; is QClipboard::Clipboard, the data is retrieved from the global clipboard. If &lt;tt&gt;mode&lt;/tt&gt; is QClipboard::Selection, the data is retrieved from the global mouse selection. If &lt;tt&gt;mode&lt;/tt&gt; is QClipboard::FindBuffer, the data is retrieved from the search string buffer.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QClipboard.html#text(com.trolltech.qt.gui.QClipboard.Mode)&quot;&gt;&lt;tt&gt;text&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QClipboard.html#image(com.trolltech.qt.gui.QClipboard.Mode)&quot;&gt;&lt;tt&gt;image&lt;/tt&gt;&lt;/a&gt;, and &lt;a href=&quot;QClipboard.html#pixmap(com.trolltech.qt.gui.QClipboard.Mode)&quot;&gt;&lt;tt&gt;pixmap&lt;/tt&gt;&lt;/a&gt; functions are simpler wrappers for retrieving text, image, and pixmap data.&lt;/p&gt;

@see &lt;a href=&quot;QClipboard.html#setMimeData(com.trolltech.qt.gui.QMimeData, com.trolltech.qt.gui.QClipboard.Mode)&quot;&gt;&lt;tt&gt;setMimeData&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QMimeData mimeData()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QClipboard.html#mimeData(com.trolltech.qt.gui.QClipboard.Mode)&quot;&gt;&lt;tt&gt;mimeData&lt;/tt&gt;&lt;/a&gt;(Clipboard). */"/>
    <method name="public final boolean ownsClipboard()" doc="/**
&lt;p&gt;Returns true if this clipboard object owns the clipboard data; otherwise returns false.&lt;/p&gt;
 */"/>
    <method name="public final boolean ownsFindBuffer()" doc="/**
&lt;p&gt;Returns true if this clipboard object owns the find buffer data; otherwise returns false.&lt;/p&gt;
 */"/>
    <method name="public final boolean ownsSelection()" doc="/**
&lt;p&gt;Returns true if this clipboard object owns the mouse selection data; otherwise returns false.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QPixmap pixmap(com.trolltech.qt.gui.QClipboard.Mode mode)" doc="/**
&lt;p&gt;Returns the clipboard pixmap, or null if the clipboard does not contain a pixmap. Note that this can lose information. For example, if the image is 24-bit and the display is 8-bit, the result is converted to 8 bits, and if the image has an alpha channel, the result just has a mask.&lt;/p&gt;
&lt;p&gt;The &lt;tt&gt;mode&lt;/tt&gt; argument is used to control which part of the system clipboard is used. If &lt;tt&gt;mode&lt;/tt&gt; is QClipboard::Clipboard, the pixmap is retrieved from the global clipboard. If &lt;tt&gt;mode&lt;/tt&gt; is QClipboard::Selection, the pixmap is retrieved from the global mouse selection.&lt;/p&gt;

@see &lt;a href=&quot;QClipboard.html#setPixmap(com.trolltech.qt.gui.QPixmap, com.trolltech.qt.gui.QClipboard.Mode)&quot;&gt;&lt;tt&gt;setPixmap&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QClipboard.html#image(com.trolltech.qt.gui.QClipboard.Mode)&quot;&gt;&lt;tt&gt;image&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QClipboard.html#mimeData(com.trolltech.qt.gui.QClipboard.Mode)&quot;&gt;&lt;tt&gt;mimeData&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QPixmap::convertFromImage&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QPixmap pixmap()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QClipboard.html#pixmap(com.trolltech.qt.gui.QClipboard.Mode)&quot;&gt;pixmap&lt;/tt&gt;&lt;/a&gt;(Clipboard). */"/>
    <method name="public final void setImage(com.trolltech.qt.gui.QImage arg__1, com.trolltech.qt.gui.QClipboard.Mode mode)" doc="/**
&lt;p&gt;Copies the &lt;tt&gt;arg__1&lt;/tt&gt; into the clipboard.&lt;/p&gt;
&lt;p&gt;The &lt;tt&gt;mode&lt;/tt&gt; argument is used to control which part of the system clipboard is used. If &lt;tt&gt;mode&lt;/tt&gt; is QClipboard::Clipboard, the image is stored in the global clipboard. If &lt;tt&gt;mode&lt;/tt&gt; is QClipboard::Selection, the data is stored in the global mouse selection.&lt;/p&gt;
&lt;p&gt;This is shorthand for:&lt;/p&gt;
&lt;pre&gt;    QMimeData *data = new QMimeData;
    data-&amp;gt;setImageData(image);
    clipboard-&amp;gt;setMimeData(data, mode);&lt;/pre&gt;

@see &lt;a href=&quot;QClipboard.html#image(com.trolltech.qt.gui.QClipboard.Mode)&quot;&gt;&lt;tt&gt;image&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QClipboard.html#setPixmap(com.trolltech.qt.gui.QPixmap, com.trolltech.qt.gui.QClipboard.Mode)&quot;&gt;&lt;tt&gt;setPixmap&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QClipboard.html#setMimeData(com.trolltech.qt.gui.QMimeData, com.trolltech.qt.gui.QClipboard.Mode)&quot;&gt;&lt;tt&gt;setMimeData&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setImage(com.trolltech.qt.gui.QImage arg__1)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QClipboard.html#setImage(com.trolltech.qt.gui.QImage, com.trolltech.qt.gui.QClipboard.Mode)&quot;&gt;&lt;tt&gt;setImage&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;arg__1&lt;/tt&gt;, Clipboard). */"/>
    <method name="public final void setMimeData(com.trolltech.qt.gui.QMimeData data, com.trolltech.qt.gui.QClipboard.Mode mode)" doc="/**
&lt;p&gt;Sets the clipboard data to &lt;tt&gt;data&lt;/tt&gt;. Ownership of the data is transferred to the clipboard. If you want to remove the data either call &lt;a href=&quot;QClipboard.html#clear(com.trolltech.qt.gui.QClipboard.Mode)&quot;&gt;&lt;tt&gt;clear&lt;/tt&gt;&lt;/a&gt; or call &lt;a href=&quot;QClipboard.html#setMimeData(com.trolltech.qt.gui.QMimeData, com.trolltech.qt.gui.QClipboard.Mode)&quot;&gt;&lt;tt&gt;setMimeData&lt;/tt&gt;&lt;/a&gt; again with new data.&lt;/p&gt;
&lt;p&gt;The &lt;tt&gt;mode&lt;/tt&gt; argument is used to control which part of the system clipboard is used. If &lt;tt&gt;mode&lt;/tt&gt; is QClipboard::Clipboard, the data is stored in the global clipboard. If &lt;tt&gt;mode&lt;/tt&gt; is QClipboard::Selection, the data is stored in the global mouse selection. If &lt;tt&gt;mode&lt;/tt&gt; is QClipboard::FindBuffer, the data is stored in the search string buffer.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QClipboard.html#setText(java.lang.String, com.trolltech.qt.gui.QClipboard.Mode)&quot;&gt;&lt;tt&gt;setText&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QClipboard.html#setImage(com.trolltech.qt.gui.QImage, com.trolltech.qt.gui.QClipboard.Mode)&quot;&gt;&lt;tt&gt;setImage&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QClipboard.html#setPixmap(com.trolltech.qt.gui.QPixmap, com.trolltech.qt.gui.QClipboard.Mode)&quot;&gt;&lt;tt&gt;setPixmap&lt;/tt&gt;&lt;/a&gt; functions are simpler wrappers for setting text, image and pixmap data respectively.&lt;/p&gt;

@see &lt;a href=&quot;QClipboard.html#mimeData(com.trolltech.qt.gui.QClipboard.Mode)&quot;&gt;&lt;tt&gt;mimeData&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setMimeData(com.trolltech.qt.gui.QMimeData data)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QClipboard.html#setMimeData(com.trolltech.qt.gui.QMimeData, com.trolltech.qt.gui.QClipboard.Mode)&quot;&gt;&lt;tt&gt;setMimeData&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;data&lt;/tt&gt;, Clipboard). */"/>
    <method name="public final void setPixmap(com.trolltech.qt.gui.QPixmap arg__1, com.trolltech.qt.gui.QClipboard.Mode mode)" doc="/**
&lt;p&gt;Copies &lt;tt&gt;arg__1&lt;/tt&gt; into the clipboard. Note that this is slower than &lt;a href=&quot;QClipboard.html#setImage(com.trolltech.qt.gui.QImage, com.trolltech.qt.gui.QClipboard.Mode)&quot;&gt;&lt;tt&gt;setImage&lt;/tt&gt;&lt;/a&gt; because it needs to convert the &lt;a href=&quot;QPixmap.html&quot;&gt;&lt;tt&gt;QPixmap&lt;/tt&gt;&lt;/a&gt; to a &lt;a href=&quot;QImage.html&quot;&gt;&lt;tt&gt;QImage&lt;/tt&gt;&lt;/a&gt; first.&lt;/p&gt;
&lt;p&gt;The &lt;tt&gt;mode&lt;/tt&gt; argument is used to control which part of the system clipboard is used. If &lt;tt&gt;mode&lt;/tt&gt; is QClipboard::Clipboard, the pixmap is stored in the global clipboard. If &lt;tt&gt;mode&lt;/tt&gt; is QClipboard::Selection, the pixmap is stored in the global mouse selection.&lt;/p&gt;

@see &lt;a href=&quot;QClipboard.html#pixmap(com.trolltech.qt.gui.QClipboard.Mode)&quot;&gt;&lt;tt&gt;pixmap&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QClipboard.html#setImage(com.trolltech.qt.gui.QImage, com.trolltech.qt.gui.QClipboard.Mode)&quot;&gt;&lt;tt&gt;setImage&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QClipboard.html#setMimeData(com.trolltech.qt.gui.QMimeData, com.trolltech.qt.gui.QClipboard.Mode)&quot;&gt;&lt;tt&gt;setMimeData&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setPixmap(com.trolltech.qt.gui.QPixmap arg__1)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QClipboard.html#setPixmap(com.trolltech.qt.gui.QPixmap, com.trolltech.qt.gui.QClipboard.Mode)&quot;&gt;&lt;tt&gt;setPixmap&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;arg__1&lt;/tt&gt;, Clipboard). */"/>
    <method name="public final void setText(java.lang.String arg__1, com.trolltech.qt.gui.QClipboard.Mode mode)" doc="/**
&lt;p&gt;Copies &lt;tt&gt;arg__1&lt;/tt&gt; into the clipboard as plain text.&lt;/p&gt;
&lt;p&gt;The &lt;tt&gt;mode&lt;/tt&gt; argument is used to control which part of the system clipboard is used. If &lt;tt&gt;mode&lt;/tt&gt; is QClipboard::Clipboard, the text is stored in the global clipboard. If &lt;tt&gt;mode&lt;/tt&gt; is QClipboard::Selection, the text is stored in the global mouse selection. If &lt;tt&gt;mode&lt;/tt&gt; is QClipboard::FindBuffer, the text is stored in the search string buffer.&lt;/p&gt;

@see &lt;a href=&quot;QClipboard.html#text(com.trolltech.qt.gui.QClipboard.Mode)&quot;&gt;&lt;tt&gt;text&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QClipboard.html#setMimeData(com.trolltech.qt.gui.QMimeData, com.trolltech.qt.gui.QClipboard.Mode)&quot;&gt;&lt;tt&gt;setMimeData&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setText(java.lang.String arg__1)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QClipboard.html#setText(java.lang.String, com.trolltech.qt.gui.QClipboard.Mode)&quot;&gt;&lt;tt&gt;setText&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;arg__1&lt;/tt&gt;, Clipboard). */"/>
    <method name="public final boolean supportsFindBuffer()" doc="/**
&lt;p&gt;Returns true if the clipboard supports a separate search buffer; otherwise returns false.&lt;/p&gt;
 */"/>
    <method name="public final boolean supportsSelection()" doc="/**
&lt;p&gt;Returns true if the clipboard supports mouse selection; otherwise returns false.&lt;/p&gt;
 */"/>
    <method name="public final java.lang.String text(com.trolltech.qt.gui.QClipboard.Mode mode)" doc="/**
&lt;p&gt;Returns the clipboard text as plain text, or an empty string if the clipboard does not contain any text.&lt;/p&gt;
&lt;p&gt;The &lt;tt&gt;mode&lt;/tt&gt; argument is used to control which part of the system clipboard is used. If &lt;tt&gt;mode&lt;/tt&gt; is QClipboard::Clipboard, the text is retrieved from the global clipboard. If &lt;tt&gt;mode&lt;/tt&gt; is QClipboard::Selection, the text is retrieved from the global mouse selection. If &lt;tt&gt;mode&lt;/tt&gt; is QClipboard::FindBuffer, the text is retrieved from the search string buffer.&lt;/p&gt;

@see &lt;a href=&quot;QClipboard.html#setText(java.lang.String, com.trolltech.qt.gui.QClipboard.Mode)&quot;&gt;&lt;tt&gt;setText&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QClipboard.html#mimeData(com.trolltech.qt.gui.QClipboard.Mode)&quot;&gt;&lt;tt&gt;mimeData&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String text()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QClipboard.html#text(com.trolltech.qt.gui.QClipboard.Mode)&quot;&gt;text&lt;/tt&gt;&lt;/a&gt;(Clipboard). */"/>
    <enum name="Mode" doc="/**
&lt;a name=&quot;clipboard-mode&quot;&gt;&lt;/a&gt;&lt;p&gt;This enum type is used to control which part of the system clipboard is used by QClipboard::mimeData(), QClipboard::setMimeData() and related functions.&lt;/p&gt;

@see &lt;tt&gt;QClipboard::supportsSelection&lt;/tt&gt; */">
        <enum-value name="Clipboard" doc="/**
&lt;p&gt;indicates that data should be stored and retrieved from the global clipboard.&lt;/p&gt;
 */"/>
        <enum-value name="Selection" doc="/**
&lt;p&gt;indicates that data should be stored and retrieved from the global mouse selection. Support for &lt;tt&gt;Selection&lt;/tt&gt; is provided only on systems with a global mouse selection (e.g&amp;#x2e; X11).&lt;/p&gt;
 */"/>
        <enum-value name="FindBuffer" doc="/**
&lt;p&gt;indicates that data should be stored and retrieved from the Find buffer. This mode is used for holding search strings on Mac OS X.&lt;/p&gt;
 */"/>
        <enum-value name="LastMode" doc="/**
Internal. */"/>
</enum>
</class>
