[Interest] Mirror Qml Item content into Qml Image

Jérôme Godbout jerome at bodycad.com
Tue Jun 27 15:12:14 CEST 2017


if this is a one time (snapshot) render to image, Items have a method:
http://doc.qt.io/qt-5/qml-qtquick-item.html#grabToImage-method

else for live effect like Mitch Curtis said the ShaderEffectSource, note:
you can also hide the original item if required

[image: bodycad] <https://www.bodycad.com/>
Jerome Godbout
Software Developer
2035 rue du Haut-Bord, Québec, QC, Canada. G1N 4R7
T:  +1 418 527-1388
E: jerome at bodycad.com
www.bodycad.com

The contents of this email message and any attachments are intended solely
for the addressee(s) and may contain confidential and/or privileged
information and may be legally protected from disclosure. If you are not
the intended recipient of this message or their agent, or if this message
has been addressed to you in error, please immediately alert the sender by
reply email and then delete this message and any attachments. If you are
not the intended recipient, you are hereby notified that any use,
dissemination, copying, or storage of this message or its attachments is
strictly prohibited.

Le contenu de ce message et les pièces jointes sont destinés uniquement
pour le(s) destinataire(s) et peuvent contenir des informations
confidentielles et / ou privilégiées qui peuvent être protégées légalement
contre toute divulgation. Si vous n'êtes pas le destinataire de ce message
ou son agent, ou si ce message vous a été adressé par erreur, s’il vous
plaît avertir immédiatement l'expéditeur par courriel de réponse, puis
supprimer ce message et les pièces jointes. Si vous n'êtes pas le
destinataire prévu, vous êtes par la présente informé que toute
utilisation, diffusion, copie, ou stockage de ce message ou de ses pièces
jointes est strictement interdit.

On Tue, Jun 27, 2017 at 7:48 AM, Mitch Curtis <mitch.curtis at qt.io> wrote:

> You can use a ShaderEffectSource instead of an Image:
>
> http://doc.qt.io/qt-5/qml-qtquick-shadereffectsource.html#details
> ________________________________________
> From: Interest <interest-bounces+mitch.curtis=qt.io at qt-project.org> on
> behalf of Nuno Santos <nunosantos at imaginando.pt>
> Sent: Tuesday, 27 June 2017 11:19:58 AM
> To: Qt Project MailingList
> Subject: [Interest] Mirror Qml Item content into Qml Image
>
> Hi,
>
> Is there anyway of making the contents of a Qml Item appear rendered
> inside a Qml Image?
>
> The purpose is to make a viewport navigation preview for a certain Qml
> Item.
>
> Thanks!
>
> Nuno
>
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20170627/ad736e4f/attachment.html>


More information about the Interest mailing list