Quantcast
Channel: QtWebEngine
Viewing all articles
Browse latest Browse all 13965

converting bytearray to pixmap

$
0
0
QByteArray ba; QBuffer buffer(&ba); QImage img; img.load(“hai.png”); img.save(&buffer,“PNG”); how should i display the image on to a label; i think the loaded image is saved in buffer . i tried to write it IO_WriteOnly function of File but am getting error as IO_Write is not declared in the scope though QFile is included can anybody help me out in solving

Viewing all articles
Browse latest Browse all 13965

Trending Articles