How to convert QPixmap to QByteArray ? I encountered the problem now.