<?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[How to flip the image like flippable clock]]></title><description><![CDATA[<p dir="auto">Hi Folks am trying to make a flippable clock in QML.<br />
But am not able to get the flippable effect as desired, I have referred the documentation of flip method, took that as base for further development.<br />
Tried various approaches but didn't succeed. Any idea how to get that effect</p>
<p dir="auto">Below is the referred documentation</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/import">@<bdi>import</bdi></a> QtQuick 1.0</p>
<p dir="auto">Flipable {<br />
id: flipable<br />
width: 240<br />
height: 240</p>
<pre><code> property bool flipped: false

 front: Image { source: "front.png"; anchors.centerIn: parent }
 back: Image { source: "back.png"; anchors.centerIn: parent }

 transform: Rotation {
     id: rotation
     origin.x: flipable.width/2
     origin.y: flipable.height/2
     axis.x: 1; axis.y: 0; axis.z: 0     // set axis.y to 1 to rotate around y-axis
     angle: 0    // the default angle
 }

 states: State {
     name: "back"
     PropertyChanges { target: rotation; angle: 180 }
     when: flipable.flipped
 }

 transitions: Transition {
     NumberAnimation { target: rotation; property: "angle"; duration: 4000 }
 }

 MouseArea {
     anchors.fill: parent
     onClicked: flipable.flipped = !flipable.flipped
 }
</code></pre>
<p dir="auto">}@</p>
]]></description><link>https://forum.qt.io/topic/21160/how-to-flip-the-image-like-flippable-clock</link><generator>RSS for Node</generator><lastBuildDate>Mon, 21 Sep 2026 16:49:12 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/21160.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 06 Nov 2012 12:30:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to flip the image like flippable clock on Tue, 06 Nov 2012 13:17:37 GMT]]></title><description><![CDATA[<p dir="auto">Then try axis.x: 0; axis.y: 1; axis.z: 0....or the third axe^^</p>
]]></description><link>https://forum.qt.io/post/156210</link><guid isPermaLink="true">https://forum.qt.io/post/156210</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Tue, 06 Nov 2012 13:17:37 GMT</pubDate></item><item><title><![CDATA[Reply to How to flip the image like flippable clock on Tue, 06 Nov 2012 12:56:13 GMT]]></title><description><![CDATA[<p dir="auto">what I desired to have flip that image on x -axis through half of its height as we get in flippable clock</p>
]]></description><link>https://forum.qt.io/post/156206</link><guid isPermaLink="true">https://forum.qt.io/post/156206</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Tue, 06 Nov 2012 12:56:13 GMT</pubDate></item><item><title><![CDATA[Reply to How to flip the image like flippable clock on Tue, 06 Nov 2012 12:52:43 GMT]]></title><description><![CDATA[<p dir="auto">I don't see anything wrong, and it works in my project as this :) !</p>
]]></description><link>https://forum.qt.io/post/156205</link><guid isPermaLink="true">https://forum.qt.io/post/156205</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Tue, 06 Nov 2012 12:52:43 GMT</pubDate></item></channel></rss>