Hi,
I use the following codes to save a QPixmap, while it does really saves, it actually makes my app pause a little, probably due the the amount of data to be written is large.
Therefore, I would like to find out how can i save a image asynchronously such that my app will not "hang"?
Any help is appreciated. Thanks!Code:baTemp.append(recvStringModified); ba.append(QByteArray::fromBase64(baTemp)); QPixmap *aPicmap2=new QPixmap(); qDebug()<<ba.size(); bool status1=aPicmap2->loadFromData(ba); qDebug()<<"saving image...."; bool status2=aPicmap2->save("/home/user/MyDocs/DCIM/filename.png");



Reply With Quote

