QImage img; img.loadFromData(q.record().value("picture").toByteArray()); qobject_cast<QLabel*>(o)->setPixmap(QPixmap::fromImage(img));
C++ (Qt)QPixmap pix;pix.loadFromData(...);qobject_cast<QLabel*>(o)->setPixmap(pix);