[Interest] QML: Property 'update' of object QPaintedTextureImage is not a function
Federico Ferri
federico.ferri.it at gmail.com
Thu Jan 31 23:50:40 CET 2019
Hi,
I’m trying to display a stream of images from a capture device in Qt3D
(via a texture).
So I subclassed QPaintedTextureImage overriding paint().
According to documentation of QPaintedTextureImage, each time update()
is called, the paint() function is invoked and the resulting image is
uploaded.
I’m trying to do so from QML (i.e. I have a Timer { onTriggered:
myTexImage.update() }) but I get the error:
2019-01-31 22:48:54.865282+0100 Qt3DOpenCV[50001:4569220]
qrc:/MyScene.qml:57: TypeError: Property 'update' of object
Qt3DRender::QPaintedTextureImage(0x106ef6bf0) is not a function
How shall the update() method be invoked?
More information about the Interest
mailing list