Add note about lifetime of the pointer returned by QClipboard::mimeData()

Explain that it might become invalidated when the clipboard changes.

Task-number: QTBUG-55737
Change-Id: Ic7366901f60647caab44930ab03915fd0c9aba1a
Reviewed-by: Topi Reiniö <topi.reinio@theqtcompany.com>
This commit is contained in:
Friedemann Kleint 2016-09-08 13:30:01 +02:00
parent 76746ddab6
commit a456739786

View File

@ -438,6 +438,10 @@ void QClipboard::setPixmap(const QPixmap &pixmap, Mode mode)
The text(), image(), and pixmap() functions are simpler
wrappers for retrieving text, image, and pixmap data.
\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.
\sa setMimeData()
*/
const QMimeData* QClipboard::mimeData(Mode mode) const