Converting QPixmap to QByteArray

From Qt Wiki
Revision as of 15:11, 14 January 2015 by Maintenance script (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

English Български

Convert QPixmap to QByteArray

This is one way to convert QPixmap [doc.qt.nokia.com] to QByteArray [doc.qt.nokia.com].

Useful when you want to store a pixmap in a database etc.

Now variable bArray contains the byte array form of pixmap.

Categories
Snippets
HowTo