Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

How can I implement QQuickItem::updatePaintNode() to show an video image using QSGTexture?

$
0
0
QSGTexture texture; QSGNode * updatePaintNode(QSGNode * oldNode, UpdatePaintNodeData *) {     QSGNode* node;     if(!oldNode)     {         node = new QSGSimpleTextureNode();     }         node->setTexture(&texture);         return node;         } How can I construct a QSGTexture object to show an image? (there’s an image buffer pointer which points to pixels data of an image: imgBuffer) should I need to call EGL library function?

Viewing all articles
Browse latest Browse all 4972

Trending Articles