⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qclipboard.3qt

📁 Linux下的基于X11的图形开发环境。
💻 3QT
📖 第 1 页 / 共 2 页
字号:
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code..PPThis function uses the QClipboard::clear() function which takes a QClipboard::Mode argument. The value of the mode argument is determined by the return value of selectionModeEnabled(). If selectionModeEnabled() returns TRUE, the mode argument is QClipboard::Selection, otherwise the mode argument is QClipboard::Clipboard..SH "QMimeSource * QClipboard::data ( Mode mode ) const"Returns a reference to a QMimeSource representation of the current clipboard data..PPThe \fImode\fR argument is used to control which part of the system clipboard is used. If \fImode\fR is QClipboard::Clipboard, the data is retreived from the global clipboard. If \fImode\fR is QClipboard::Selection, the data is retreived from the global mouse selection..PPSee also setData()..SH "QMimeSource * QClipboard::data () const"\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code..PPThis function uses the QClipboard::data() function which takes a QClipboard::Mode argument. The value of the mode argument is determined by the return value of selectionModeEnabled(). If selectionModeEnabled() returns TRUE, the mode argument is QClipboard::Selection, otherwise the mode argument is QClipboard::Clipboard..SH "void QClipboard::dataChanged ()\fC [signal]\fR"This signal is emitted when the clipboard data is changed..SH "QImage QClipboard::image ( Mode mode ) const"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..PPThe \fImode\fR argument is used to control which part of the system clipboard is used. If \fImode\fR is QClipboard::Clipboard, the image is retreived from the global clipboard. If \fImode\fR is QClipboard::Selection, the image is retreived from the global mouse selection..PPSee also setImage(), pixmap(), data(), and QImage::isNull()..SH "QImage QClipboard::image () const"\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code..PPThis function uses the QClipboard::image() function which takes a QClipboard::Mode argument. The value of the mode argument is determined by the return value of selectionModeEnabled(). If selectionModeEnabled() returns TRUE, the mode argument is QClipboard::Selection, otherwise the mode argument is QClipboard::Clipboard..SH "bool QClipboard::ownsClipboard () const"Returns TRUE if this clipboard object owns the clipboard data; otherwise returns FALSE..SH "bool QClipboard::ownsSelection () const"Returns TRUE if this clipboard object owns the mouse selection data; otherwise returns FALSE..SH "QPixmap QClipboard::pixmap ( Mode mode ) const"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..PPThe \fImode\fR argument is used to control which part of the system clipboard is used. If \fImode\fR is QClipboard::Clipboard, the pixmap is retreived from the global clipboard. If \fImode\fR is QClipboard::Selection, the pixmap is retreived from the global mouse selection..PPSee also setPixmap(), image(), data(), and QPixmap::convertFromImage()..SH "QPixmap QClipboard::pixmap () const"\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code..PPThis function uses the QClipboard::pixmap() function which takes a QClipboard::Mode argument. The value of the mode argument is determined by the return value of selectionModeEnabled(). If selectionModeEnabled() returns TRUE, the mode argument is QClipboard::Selection, otherwise the mode argument is QClipboard::Clipboard..SH "void QClipboard::selectionChanged ()\fC [signal]\fR"This signal is emitted when the selection is changed. This only applies to windowing systems that support selections, e.g. X11. Windows doesn't support selections..SH "bool QClipboard::selectionModeEnabled () const"\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code..PPUse the QClipboard::data(), QClipboard::setData() and related functions which take a QClipboard::Mode argument..PPReturns the selection mode..PPSee also setSelectionMode() and supportsSelection()..SH "void QClipboard::setData ( QMimeSource * src, Mode mode )"Sets the clipboard data to \fIsrc\fR. Ownership of the data is transferred to the clipboard. If you want to remove the data either call clear() or call setData() again with new data..PPThe \fImode\fR argument is used to control which part of the system clipboard is used. If \fImode\fR is QClipboard::Clipboard, the data is retreived from the global clipboard. If \fImode\fR is QClipboard::Selection, the data is retreived from the global mouse selection..PPThe QDragObject subclasses are reasonable objects to put into the clipboard (but do not try to call QDragObject::drag() on the same object). Any QDragObject placed in the clipboard should have a parent of 0. Do not put QDragMoveEvent or QDropEvent subclasses in the clipboard, as they do not belong to the event handler which receives them..PPThe setText(), setImage() and setPixmap() functions are simpler wrappers for setting text, image and pixmap data respectively..PPSee also data()..SH "void QClipboard::setData ( QMimeSource * src )"\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code..PPThis function uses the QClipboard::setData() function which takes a QClipboard::Mode argument. The value of the mode argument is determined by the return value of selectionModeEnabled(). If selectionModeEnabled() returns TRUE, the mode argument is QClipboard::Selection, otherwise the mode argument is QClipboard::Clipboard..SH "void QClipboard::setImage ( const QImage & image, Mode mode )"Copies \fIimage\fR into the clipboard..PPThe \fImode\fR argument is used to control which part of the system clipboard is used. If \fImode\fR is QClipboard::Clipboard, the image is stored in the global clipboard. If \fImode\fR is QClipboard::Selection, the data is stored in the global mouse selection..PPThis is shorthand for:.PP.nf.br        setData( new QImageDrag(image), mode ).br.fi.PPSee also image(), setPixmap(), and setData()..SH "void QClipboard::setImage ( const QImage & image )"\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code..PPThis function uses the QClipboard::setImage() function which takes a QClipboard::Mode argument. The value of the mode argument is determined by the return value of selectionModeEnabled(). If selectionModeEnabled() returns TRUE, the mode argument is QClipboard::Selection, otherwise the mode argument is QClipboard::Clipboard..SH "void QClipboard::setPixmap ( const QPixmap & pixmap, Mode mode )"Copies \fIpixmap\fR into the clipboard. Note that this is slower than setImage() because it needs to convert the QPixmap to a QImage first..PPThe \fImode\fR argument is used to control which part of the system clipboard is used. If \fImode\fR is QClipboard::Clipboard, the pixmap is stored in the global clipboard. If \fImode\fR is QClipboard::Selection, the pixmap is stored in the global mouse selection..PPSee also pixmap(), setImage(), and setData()..SH "void QClipboard::setPixmap ( const QPixmap & pixmap )"\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code..PPThis function uses the QClipboard::setPixmap() function which takes a QClipboard::Mode argument. The value of the mode argument is determined by the return value of selectionModeEnabled(). If selectionModeEnabled() returns TRUE, the mode argument is QClipboard::Selection, otherwise the mode argument is QClipboard::Clipboard..SH "void QClipboard::setSelectionMode ( bool enable )"\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code..PPUse the QClipboard::data(), QClipboard::setData() and related functions which take a QClipboard::Mode argument..PPSets the clipboard selection mode. If \fIenable\fR is TRUE, then subsequent calls to QClipboard::setData() and other functions which put data into the clipboard will put the data into the mouse selection, otherwise the data will be put into the clipboard..PPSee also supportsSelection() and selectionModeEnabled()..SH "void QClipboard::setText ( const QString & text, Mode mode )"Copies \fItext\fR into the clipboard as plain text..PPThe \fImode\fR argument is used to control which part of the system clipboard is used. If \fImode\fR is QClipboard::Clipboard, the text is stored in the global clipboard. If \fImode\fR is QClipboard::Selection, the text is stored in the global mouse selection..PPSee also text() and setData()..SH "void QClipboard::setText ( const QString & text )"\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code..PPThis function uses the QClipboard::setText() function which takes a QClipboard::Mode argument. The value of the mode argument is determined by the return value of selectionModeEnabled(). If selectionModeEnabled() returns TRUE, the mode argument is QClipboard::Selection, otherwise the mode argument is QClipboard::Clipboard..SH "bool QClipboard::supportsSelection () const"Returns TRUE if the clipboard supports mouse selection; otherwise returns FALSE..SH "QString QClipboard::text ( Mode mode ) const"Returns the clipboard text as plain text, or a null string if the clipboard does not contain any text..PPThe \fImode\fR argument is used to control which part of the system clipboard is used. If \fImode\fR is QClipboard::Clipboard, the text is retreived from the global clipboard. If \fImode\fR is QClipboard::Selection, the text is retreived from the global mouse selection..PPSee also setText(), data(), and QString::operator!()..SH "QString QClipboard::text ( QCString & subtype, Mode mode ) const"This is an overloaded member function, provided for convenience. It behaves essentially like the above function..PPReturns the clipboard text in subtype \fIsubtype\fR, or a null string if the clipboard does not contain any text. If \fIsubtype\fR is null, any subtype is acceptable, and \fIsubtype\fR is set to the chosen subtype..PPThe \fImode\fR argument is used to control which part of the system clipboard is used. If \fImode\fR is QClipboard::Clipboard, the text is retreived from the global clipboard. If \fImode\fR is QClipboard::Selection, the text is retreived from the global mouse selection..PPCommon values for \fIsubtype\fR are "plain" and "html"..PPSee also setText(), data(), and QString::operator!()..SH "QString QClipboard::text () const"\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code..PPThis function uses the QClipboard::text() function which takes a QClipboard::Mode argument. The value of the mode argument is determined by the return value of selectionModeEnabled(). If selectionModeEnabled() returns TRUE, the mode argument is QClipboard::Selection, otherwise the mode argument is QClipboard::Clipboard..SH "QString QClipboard::text ( QCString & subtype ) const"\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code..PPThis function uses the QClipboard::text() function which takesa QClipboard::Mode argument.  The value of the mode argument isdetermined by the return value of selectionModeEnabled().If selectionModeEnabled() returns TRUE, the mode argument isQClipboard::Selection, otherwise the mode argument isQClipboard::Clipboard..SH "SEE ALSO".BR http://doc.trolltech.com/qclipboard.html.BR http://www.trolltech.com/faq/tech.html.SH COPYRIGHTCopyright 1992-2001 Trolltech AS, http://www.trolltech.com.  See thelicense file included in the distribution for a complete licensestatement..SH AUTHORGenerated automatically from the source code..SH BUGSIf you find a bug in Qt, please report it as described in.BR http://doc.trolltech.com/bughowto.html .Good bug reports help us to help you. Thank you..PThe definitive Qt documentation is provided in HTML format; it islocated at $QTDIR/doc/html and can be read using Qt Assistant or witha web browser. This man page is provided as a convenience for thoseusers who prefer man pages, although this format is not officiallysupported by Trolltech. .PIf you find errors in this manual page, please report them to.BR qt-bugs@trolltech.com .Please include the name of the manual page (qclipboard.3qt) and the Qtversion (3.1.1).

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -