<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[QML-Change data in Image Details tab properties]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I use Qt version 5.6.0 with qml from windows 8.1.<br />
I want to set metadata for captured images in QML.<br />
I've tried the following code, the program runs on desktop takes the picture and saves it.<br />
After I open it up with Preview and check the metadata... and nothing special there (no Author key).</p>
<pre><code>Camera {
                                id: camera
                                metaData.author: "neda"
</code></pre>
]]></description><link>https://forum.qt.io/topic/66661/qml-change-data-in-image-details-tab-properties</link><generator>RSS for Node</generator><lastBuildDate>Tue, 16 Jun 2026 05:25:16 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/66661.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 03 May 2016 07:10:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QML-Change data in Image Details tab properties on Tue, 10 May 2016 03:24:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jordanharris">@<bdi>JordanHarris</bdi></a></p>
<p dir="auto">Thank you.</p>
<p dir="auto">I use this code but It does not work.</p>
<pre><code> imageCapture {
     onImageMetadataAvailable:{
        setMetadata(key,value)
        console.log("Image Metadata Callback : "+key+" = "+value)
        setMetadata("Title","neda")
    }


</code></pre>
<pre><code>onClicked: {
camera.imageCapture.setMetadata(camera.metaData.author, "neda")
//or this code:
camera.imageCapture.setMetadata("Author", "neda")
//or this code:
camera.metaData.author="neda"

camera.imageCapture.capture()

</code></pre>
<p dir="auto">Update: I also tried to do that using QImageWriter as follows:</p>
<pre><code>QImage image("c:/1.jpg");
QImageWriter writer("c:/11.png", "png");
writer.setText("Author", "neda");
writer.write(image);    
</code></pre>
<p dir="auto">But, none of my tries gave me any success (change data in Image Details tab properties). Any idea?</p>
]]></description><link>https://forum.qt.io/post/325510</link><guid isPermaLink="true">https://forum.qt.io/post/325510</guid><dc:creator><![CDATA[neda]]></dc:creator><pubDate>Tue, 10 May 2016 03:24:25 GMT</pubDate></item><item><title><![CDATA[Reply to QML-Change data in Image Details tab properties on Wed, 04 May 2016 03:39:15 GMT]]></title><description><![CDATA[<p dir="auto">@Wieland</p>
<p dir="auto">Thank you.<br />
I see this <a href="http://doc.qt.io/qt-5/qmediametadata.html" target="_blank" rel="noopener noreferrer nofollow ugc">link</a></p>
<p dir="auto">I use this code but it does not work.</p>
<pre><code>Camera {
                                id: camera
                                metaData.cameraModel: "lenovo"
</code></pre>
]]></description><link>https://forum.qt.io/post/325508</link><guid isPermaLink="true">https://forum.qt.io/post/325508</guid><dc:creator><![CDATA[neda]]></dc:creator><pubDate>Wed, 04 May 2016 03:39:15 GMT</pubDate></item><item><title><![CDATA[Reply to QML-Change data in Image Details tab properties on Tue, 03 May 2016 13:43:50 GMT]]></title><description><![CDATA[<p dir="auto">I've never actually done this, so I'm not sure, but I think this might work after reading the documentation.</p>
<pre><code>Camera { id: cam }

Button {
    onClicked: {
        cam.imageCapture.setMetadata("Author", "neda");
        cam.imageCapture.capture();
   } 
} 
</code></pre>
]]></description><link>https://forum.qt.io/post/325399</link><guid isPermaLink="true">https://forum.qt.io/post/325399</guid><dc:creator><![CDATA[JordanHarris]]></dc:creator><pubDate>Tue, 03 May 2016 13:43:50 GMT</pubDate></item><item><title><![CDATA[Reply to QML-Change data in Image Details tab properties on Tue, 03 May 2016 11:10:42 GMT]]></title><description><![CDATA[<p dir="auto">I don't see an "author" property listed in "metaData" here: <a href="http://doc.qt.io/qt-5/qml-qtmultimedia-camera.html" target="_blank" rel="noopener noreferrer nofollow ugc">http://doc.qt.io/qt-5/qml-qtmultimedia-camera.html</a></p>
]]></description><link>https://forum.qt.io/post/325370</link><guid isPermaLink="true">https://forum.qt.io/post/325370</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Tue, 03 May 2016 11:10:42 GMT</pubDate></item></channel></rss>