Hi all,

I need to catch a pixmap on a desired QML's item before or after its
rendering to send, e.g. to the network or to do something else. I want to
use the C++ code for this purpose.

So, I have following questions:


1) Is there are any way to know (e.g. to get a signal), that a desired QML
item were updated?

I did not found many answers for this issue, I see only one similar virtual
method:

virtual QSGNode **updatePaintNode
<http://doc.qt.io/qt-5/qquickitem.html#updatePaintNode>*(QSGNode **oldNode*,
UpdatePaintNodeData **updatePaintNodeData*)

which, I think, should to notify me that an Item was updated. But, I'm not
sure...


2) Is there are any way to grab a pixmap of a desired Item quickly?

I see only one method:

QSharedPointer<QQuickItemGrabResult> *grabToImage
<http://doc.qt.io/qt-5/qquickitem.html#grabToImage>*(const QSize &
*targetSize* = QSize())

which is asynchronous.

I tried it, but the signal QQuickItemGrabResult::ready
<http://doc.qt.io/qt-5/qquickitemgrabresult.html#ready>() get stuck after
some time...

BR,
Denis
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to