![]() ![]() Note: The pointer returned might become invalidated when the contents of the clipboard changes either by calling one of the setter functions or externally by the system clipboard changing. The text(), image(), and pixmap() functions are simpler wrappers for retrieving text, image, and pixmap data. If mode is QClipboard::FindBuffer, the data is retrieved from the search string buffer. If mode is QClipboard::Selection, the data is retrieved from the global mouse selection. If mode is QClipboard::Clipboard, the data is retrieved from the global clipboard. The mode argument is used to control which part of the system clipboard is used. Returns a pointer to a QMimeData representation of the current clipboard data (can be nullptr if the given mode is not supported by the platform). const QMimeData *QClipboard:: mimeData( QClipboard::Mode mode = Clipboard) const See also setImage(), pixmap(), mimeData(), and QImage::isNull(). If mode is QClipboard::Selection, the image is retrieved from the global mouse selection. If mode is QClipboard::Clipboard, the image is retrieved from the global clipboard. 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. ![]() QImage QClipboard:: image( QClipboard::Mode mode = Clipboard) const See also QClipboard::Mode and supportsSelection(). If mode is QClipboard::FindBuffer, this function clears the search string buffer. If mode is QClipboard::Selection, this function clears the global mouse selection contents. If mode is QClipboard::Clipboard, this function clears the global clipboard contents. void QClipboard:: clear( QClipboard::Mode mode = Clipboard) See also dataChanged(), findBufferChanged(), and changed(). Windows and macOS don't support selections. This only applies to windowing systems that support selections, e.g. This signal is emitted when the selection is changed. See also dataChanged(), selectionChanged(), and changed(). With Qt version 4.3 or higher, clipboard changes made by other applications will only be detected when the application is activated. This signal is emitted when the find buffer is changed. See also findBufferChanged(), selectionChanged(), and changed(). On macOS and with Qt version 4.3 or higher, clipboard changes made by other applications will only be detected when the application is activated. This signal is emitted when the clipboard data is changed. See also dataChanged(), selectionChanged(), and findBufferChanged(). This signal is emitted when the data for the given clipboard mode is changed. Member Function Documentation void QClipboard:: changed( QClipboard::Mode mode) On Android only these mime types are supported: text/plain, text/html, and text/uri-list.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |