[Interest] [QML] Is it possible to catch a frame's pixmap during its changing?
Denis Shienkov
denis.shienkov at gmail.com
Thu Feb 9 11:01:38 CET 2017
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20170209/811f40f1/attachment.html>
More information about the Interest
mailing list