<?xml version="1.0" encoding="utf-8"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>Qt Centre Forum - Qt Quick</title>
		<link>http://www.qtcentre.org/</link>
		<description>Issues and messages concerning Qt Quick (QML, QtDeclarative)</description>
		<language>en</language>
		<lastBuildDate>Tue, 18 Jun 2013 06:11:20 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>15</ttl>
		<image>
			<url>http://www.qtcentre.org/images/misc/rss.png</url>
			<title>Qt Centre Forum - Qt Quick</title>
			<link>http://www.qtcentre.org/</link>
		</image>
		<item>
			<title>Can Repeater delegate in Qml be made to behave in a generic way to the given Items?</title>
			<link>http://www.qtcentre.org/threads/55020-Can-Repeater-delegate-in-Qml-be-made-to-behave-in-a-generic-way-to-the-given-Items?goto=newpost</link>
			<pubDate>Tue, 18 Jun 2013 05:21:32 GMT</pubDate>
			<description>{quick 2.0, Qml Qt 5.1 beta} 
 
I wanted to know if such an idiom would be possible in Qml: Below I have objLeftColumn which expects its children to...</description>
			<content:encoded><![CDATA[<div>{quick 2.0, Qml Qt 5.1 beta}<br />
<br />
I wanted to know if such an idiom would be possible in Qml: Below I have objLeftColumn which expects its children to expose a boolean m_bIsSelected and a MouseArea alias m_mouseProperty and uses them to make the collection of such children mutually exclusive, ie., only one of them can be in selected state. The followin works fine but I need to repeat it every time I want and specially if I wanted it for Row etc.<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code"><pre class="qt" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">Column <span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        id<span style="color: #000000;">:</span> objLeftColumn</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        property <span style="color: #0000ff;">int</span> m_iLastButtonClicked<span style="color: #000000;">:</span> <span style="color: #000000;">-</span><span style="color: #0000dd;">1</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        property <span style="color: #0000ff;">int</span> m_iCurrentButtonClicked<span style="color: #000000;">:</span> <span style="color: #000000;">-</span><span style="color: #0000dd;">1</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        onM_iCurrentButtonClickedChanged<span style="color: #000000;">:</span> <span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            <span style="color: #0000ff;">if</span><span style="color: #000000;">&#40;</span>m_iLastButtonClicked <span style="color: #000000;">!=</span> <span style="color: #000000;">-</span><span style="color: #0000dd;">1</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                objLeftColumn.<span style="color: #009900;">children</span><span style="color: #000000;">&#91;</span>m_iLastButtonClicked<span style="color: #000000;">&#93;</span>.<span style="color: #009900;">m_bIsSelected</span> <span style="color: #000000;">=</span> <span style="color: #0000ff;">false</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            <span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            m_iLastButtonClicked <span style="color: #000000;">=</span> m_iCurrentButtonClicked</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        Repeater <span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            id<span style="color: #000000;">:</span> objLeftColumnRepeater</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            model<span style="color: #000000;">:</span> <span style="color: #0000dd;">5</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            delegate<span style="color: #000000;">:</span> ABCD <span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                id<span style="color: #000000;">:</span> objABCD</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                m_mouseProperty.<span style="color: #009900;">onClicked</span><span style="color: #000000;">:</span> <span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                    <span style="color: #0000ff;">if</span><span style="color: #000000;">&#40;</span>m_bIsSelected<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                        objLeftColumn.<span style="color: #009900;">m_iCurrentButtonClicked</span> <span style="color: #000000;">=</span> index</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                    <span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                    <span style="color: #0000ff;">else</span> <span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                        objLeftColumn.<span style="color: #009900;">m_iLastButtonClicked</span> <span style="color: #000000;">=</span> <span style="color: #000000;">-</span><span style="color: #0000dd;">1</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                        objLeftColumn.<span style="color: #009900;">m_iCurrentButtonClicked</span> <span style="color: #000000;">=</span> <span style="color: #000000;">-</span><span style="color: #0000dd;">1</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                    <span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                <span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            <span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&#125;</span></div></li></ol></pre></code><hr />
</div><br />
Can I write a generic objLeftColumn (in a separate qml file) that could arrange the given Items in Column while aslo dealing with exclusivity of their selection?<br />
<br />
The idea is instead of giving the component to the delegate right there an then, I'll give it later and for each instantiation of the component (depending on numeric value of model above and below) the delegate: in Repeater should behave similarly.<br />
<br />
eg., in psedo code:<br />
<br />
in Exclusive.qml:<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code"><pre class="qt" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">Column <span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        id<span style="color: #000000;">:</span> objLeftColumn</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        property <span style="color: #0000ff;">int</span> m_iLastButtonClicked<span style="color: #000000;">:</span> <span style="color: #000000;">-</span><span style="color: #0000dd;">1</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        property <span style="color: #0000ff;">int</span> m_iCurrentButtonClicked<span style="color: #000000;">:</span> <span style="color: #000000;">-</span><span style="color: #0000dd;">1</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        property alias m_delegate<span style="color: #000000;">:</span> objLeftColumnRepeater.<span style="color: #009900;">delegate</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        onM_iCurrentButtonClickedChanged<span style="color: #000000;">:</span> <span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            <span style="color: #0000ff;">if</span><span style="color: #000000;">&#40;</span>m_iLastButtonClicked <span style="color: #000000;">!=</span> <span style="color: #000000;">-</span><span style="color: #0000dd;">1</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                objLeftColumn.<span style="color: #009900;">children</span><span style="color: #000000;">&#91;</span>m_iLastButtonClicked<span style="color: #000000;">&#93;</span>.<span style="color: #009900;">m_bIsSelected</span> <span style="color: #000000;">=</span> <span style="color: #0000ff;">false</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            <span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            m_iLastButtonClicked <span style="color: #000000;">=</span> m_iCurrentButtonClicked</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        Repeater <span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            id<span style="color: #000000;">:</span> objLeftColumnRepeater</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            model<span style="color: #000000;">:</span> <span style="color: #0000dd;">5</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            onItemAdded<span style="color: #000000;">:</span> <span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            <span style="color: #ff0000;">//state of item can be manipulated but want to</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            <span style="color: #ff0000;">//add behaviour to the item (like accessing a function through virtual mechanism in c++) eg:</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            <span style="color: #ff0000; font-style: italic;">/*item {</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #ff0000; font-style: italic;">&nbsp;                    m_mouseProperty.onClicked: {</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #ff0000; font-style: italic;">&nbsp;                    //do something</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #ff0000; font-style: italic;">&nbsp;                    }</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #ff0000; font-style: italic;">&nbsp;              }*/</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            <span style="color: #000000;">&#125;</span>            </div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&#125;</span></div></li></ol></pre></code><hr />
</div><br />
in SomeOther.qml:<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code"><pre class="qt" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">Exclusive <span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    m_delegate<span style="color: #000000;">:</span> ABCD</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">Exclusive <span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    m_delegate<span style="color: #000000;">:</span> DEFG</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&#125;</span></div></li></ol></pre></code><hr />
</div><br />
etc..So this way Column in Exclusive is more generic and can be called with any Item assigned to its (Repeater's) delegate: and will behave similarly. Requirements: the item should expose m_mouseProperty (alias for MouseArea) and m_bIsSelected (bool) property.</div>

]]></content:encoded>
			<category domain="http://www.qtcentre.org/forums/42-Qt-Quick">Qt Quick</category>
			<dc:creator>ustulation</dc:creator>
			<guid isPermaLink="true">http://www.qtcentre.org/threads/55020-Can-Repeater-delegate-in-Qml-be-made-to-behave-in-a-generic-way-to-the-given-Items</guid>
		</item>
		<item>
			<title>How to use Squish tool for Qml</title>
			<link>http://www.qtcentre.org/threads/55010-How-to-use-Squish-tool-for-Qml?goto=newpost</link>
			<pubDate>Mon, 17 Jun 2013 12:50:31 GMT</pubDate>
			<description><![CDATA[I  need to use squish to test a QML application which loads in Qt-executable. Coudn't find steps or any example which illustrates the test case...]]></description>
			<content:encoded><![CDATA[<div>I  need to use squish to test a QML application which loads in Qt-executable. Coudn't find steps or any example which illustrates the test case recording.<br />
<br />
I am able to load the executable which displays qml but it doesn't recored anything.<br />
<br />
Went through Squish documentation: <a class="bbcodeurl" href="http://doc.froglogic.com/squish/5.0/" target="_blank">http://doc.froglogic.com/squish/5.0/</a><br />
<br />
In 'Section 17.4.2', it is briefly mentioned that Squish records in terms of Rectanges and Texts (which is not happening at my end.<br />
<br />
It also mentions about a Squish hook in QML objects and moving them in 'extensions' folder. Even that doesn't seem to work.<br />
<br />
If you can provide an example of Squish with Qml, it will be of great help. Thanks!</div>

]]></content:encoded>
			<category domain="http://www.qtcentre.org/forums/42-Qt-Quick">Qt Quick</category>
			<dc:creator>amankamboj1</dc:creator>
			<guid isPermaLink="true">http://www.qtcentre.org/threads/55010-How-to-use-Squish-tool-for-Qml</guid>
		</item>
		<item>
			<title>Can’t load the image after I register the qml file to Qt resource system</title>
			<link>http://www.qtcentre.org/threads/54999-Can’t-load-the-image-after-I-register-the-qml-file-to-Qt-resource-system?goto=newpost</link>
			<pubDate>Mon, 17 Jun 2013 02:33:20 GMT</pubDate>
			<description><![CDATA[main.qml 
 
<div class="bbcode_container"> 
	<div class="bbcode_description">Qt Code: 
            <div style="width: 11em; float:right; text-align:...]]></description>
			<content:encoded><![CDATA[<div>main.qml<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code"><pre class="qt" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">import QtQuick <span style="color: #0000dd;">2.0</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    Rectangle <span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        width<span style="color: #000000;">:</span> <span style="color: #0000dd;">360</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        height<span style="color: #000000;">:</span> <span style="color: #0000dd;">360</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        Image<span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            anchors.<span style="color: #009900;">fill</span><span style="color: #000000;">:</span> parent</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            source<span style="color: #000000;">:</span> <span style="color: #666666;">&quot;/Pictures/img_0000.jpg&quot;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #000000;">&#125;</span></div></li></ol></pre></code><hr />
</div><br />
main.cpp<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code"><pre class="qt" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #339900;">#include &lt;QtGui/QGuiApplication&gt;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #339900;">#include &quot;qtquick2applicationviewer.h&quot;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #0000ff;">int</span> main<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">int</span> argc, <span style="color: #0000ff;">char</span> <span style="color: #000000;">*</span>argv<span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        QGuiApplication app<span style="color: #000000;">&#40;</span>argc, argv<span style="color: #000000;">&#41;</span>;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        QtQuick2ApplicationViewer viewer;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #ff0000;">//viewer.setMainQmlFile(QStringLiteral(&quot;qml/qmlResource/main.qml&quot;));</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        viewer.<span style="color: #009900;">setSource</span><span style="color: #000000;">&#40;</span>QStringLiteral<span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;qrc:///qml/qmlResource/main.qml&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        viewer.<span style="color: #009900;">showExpanded</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #0000ff;">return</span> app.<span style="color: #009900;">exec</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #000000;">&#125;</span></div></li></ol></pre></code><hr />
</div><br />
error message<br />
<br />
qrc:///qml/qmlResource/main.qml:7:5: QML Image: Cannot open: qrc:///Pictures/img_0000.jpg<br />
<br />
looks like the Image complain it can not find the image from qrc<br />
but I don’t want the program to load the image from qrc<br />
it is not my intention<br />
<br />
<div style="padding: 0px;">
<hr style="height: 1px; background-color: rgb(196,196,196); border: 0; margin-bottom: 2px; display: block;" /><i>Added after 28 minutes:</i>
</div><br />
<br />
Find the answer<br />
<a class="bbcodeurl" href="http://qt-project.org/forums/viewthread/10477" target="_blank">http://qt-project.org/forums/viewthread/10477</a></div>

]]></content:encoded>
			<category domain="http://www.qtcentre.org/forums/42-Qt-Quick">Qt Quick</category>
			<dc:creator>stereoMatching</dc:creator>
			<guid isPermaLink="true">http://www.qtcentre.org/threads/54999-Can’t-load-the-image-after-I-register-the-qml-file-to-Qt-resource-system</guid>
		</item>
		<item>
			<title>How does Qml call fucntions which are neither slots nor Q_INVOKABLE</title>
			<link>http://www.qtcentre.org/threads/54991-How-does-Qml-call-fucntions-which-are-neither-slots-nor-Q_INVOKABLE?goto=newpost</link>
			<pubDate>Sun, 16 Jun 2013 08:52:24 GMT</pubDate>
			<description>QAbstractItemModel has data(), roleName() etc functions which I guess is used by the Qml ListView (for eg.,) to retrieve information about the items...</description>
			<content:encoded><![CDATA[<div>QAbstractItemModel has data(), roleName() etc functions which I guess is used by the Qml ListView (for eg.,) to retrieve information about the items it is supposed to display. These are neither slots nor Q_INVOKABLE, so how does Qml call them?<br />
<br />
{Qt 5.1 beta and quick 2.0}</div>

]]></content:encoded>
			<category domain="http://www.qtcentre.org/forums/42-Qt-Quick">Qt Quick</category>
			<dc:creator>ustulation</dc:creator>
			<guid isPermaLink="true">http://www.qtcentre.org/threads/54991-How-does-Qml-call-fucntions-which-are-neither-slots-nor-Q_INVOKABLE</guid>
		</item>
		<item>
			<title>ListView not being updated at runtime to follow the model</title>
			<link>http://www.qtcentre.org/threads/54981-ListView-not-being-updated-at-runtime-to-follow-the-model?goto=newpost</link>
			<pubDate>Fri, 14 Jun 2013 20:43:36 GMT</pubDate>
			<description>Hi, 
In our new project we have decided to use qml for the 1st time. Having spent sometime learning qt quick 1.0 in Qt 5.0, we suddenly have Qt 5.1...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
In our new project we have decided to use qml for the 1st time. Having spent sometime learning qt quick 1.0 in Qt 5.0, we suddenly have Qt 5.1 coming up which focuses on qml on desktops - what we need. Since 5.1 is still beta it is buggy (for QQuickView and in general QWindow maximize is not available - <a class="bbcodeurl" href="https://bugreports.qt-project.org/browse/QTBUG-31258" target="_blank">https://bugreports.qt-project.org/browse/QTBUG-31258</a>). I want to know if the following issue is a bug or is the result of wrong coding on my part:<br />
I make a class derived from QAbstractListModel and re-implement the necessary functions. I create an object of it, fill in some initial data into the model (all beginInsertRows etc done) and then pass it (the object) to qml via setContextProperty. For qt 5.1 with quick 1.0 I use QDeclarativeView. For qt 5.1 with quick 2.0 I use QQuickView. Once qml is 'shown' by show() command, I spawn a std::thread in which I pass the reference of the Model object. The thread keeps adding data to the model via direct call to Model's addData(..) function (which has beginInsertRows etc) using the passed reference every 'x' milliseconds. Meanwhile in the main thread QApplication's exec() would have started.<br />
<br />
<b>Problem:</b> Using qt 5.1 quick 1.0 (QDeclarativeView) there is no problem - the ListView (UI) updates fine and keeps growing showing it is indeed following the model. Using quick 2.0 (QQuickView) breaks this behaviour. There is no update of the UI other than the initial data set into the model (described before). If I resize or imitate a flick with the mouse then suddenly all data contained upto that point is shown but again things halt there. I get the following listed in the Application Output pane in QtCreator:<br />
<b>QObject::connect: Cannot queue arguments of type 'QQmlChangeSet'<br />
(Make sure 'QQmlChangeSet' is registered using qRegisterMetaType().)</b><br />
I don't know what QQmlChangeSet is. However if I use QThread derived class and re-implement run() to do the same, but instead of passing the refernece of Model's object I emit signal which is caught by the Model's addData(..) function which I've now turned into a slot, then everything works fine again and the ListView UI grows in number of rows. Is this expected? If so then why (ie., what is wrong with the former approach)?</div>

]]></content:encoded>
			<category domain="http://www.qtcentre.org/forums/42-Qt-Quick">Qt Quick</category>
			<dc:creator>ustulation</dc:creator>
			<guid isPermaLink="true">http://www.qtcentre.org/threads/54981-ListView-not-being-updated-at-runtime-to-follow-the-model</guid>
		</item>
		<item>
			<title>Get the raw buffer of ShaderEffectSource(qml2)</title>
			<link>http://www.qtcentre.org/threads/54976-Get-the-raw-buffer-of-ShaderEffectSource(qml2)?goto=newpost</link>
			<pubDate>Fri, 14 Jun 2013 11:46:25 GMT</pubDate>
			<description>Do anyone know how to obtain the raw buffer of ShaderEffectSource? I would like to do some postprocessing on it(save image, video record etc)</description>
			<content:encoded><![CDATA[<div>Do anyone know how to obtain the raw buffer of ShaderEffectSource? I would like to do some postprocessing on it(save image, video record etc)</div>

]]></content:encoded>
			<category domain="http://www.qtcentre.org/forums/42-Qt-Quick">Qt Quick</category>
			<dc:creator>stereoMatching</dc:creator>
			<guid isPermaLink="true">http://www.qtcentre.org/threads/54976-Get-the-raw-buffer-of-ShaderEffectSource(qml2)</guid>
		</item>
		<item>
			<title>How to take ScreenShot Qt/QML</title>
			<link>http://www.qtcentre.org/threads/54964-How-to-take-ScreenShot-Qt-QML?goto=newpost</link>
			<pubDate>Thu, 13 Jun 2013 14:42:54 GMT</pubDate>
			<description>This is the example of QtQuick1 
http://www.developer.nokia.com/Community/Wiki/How_to_take_ScreenShot_Qt/QML 
I can’t make it work on QtQuick2 
...</description>
			<content:encoded><![CDATA[<div>This is the example of QtQuick1<br />
<a class="bbcodeurl" href="http://www.developer.nokia.com/Community/Wiki/How_to_take_ScreenShot_Qt/QML" target="_blank">http://www.developer.nokia.com/Commu...eenShot_Qt/QML</a><br />
I can’t make it work on QtQuick2<br />
<br />
screenCapture.hpp<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code"><pre class="qt" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #339900;">#include &lt;QObject&gt;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    class <a href="http://qt-project.org/doc/qt-4.8/qstring.html"><span style="">QString</span></a>;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    class QQuickView;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    class screenCapture <span style="color: #000000;">:</span> <span style="color: #0000ff;">public</span> <a href="http://qt-project.org/doc/qt-4.8/qobject.html"><span style="">QObject</span></a></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="font-weight: bold;">Q_OBJECT</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #0000ff;">public</span><span style="color: #000000;">:</span>    </div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #0000ff;">explicit</span> screenCapture<span style="color: #000000;">&#40;</span>QQuickView <span style="color: #000000;">*</span>parent <span style="color: #000000;">=</span> <span style="color: #0000dd;">0</span><span style="color: #000000;">&#41;</span>;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #0000ff;">public</span> <span style="color: #0000ff;">slots</span><span style="color: #000000;">:</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #0000ff;">void</span> capture<span style="color: #000000;">&#40;</span><a href="http://qt-project.org/doc/qt-4.8/qstring.html"><span style="">QString</span></a> <span style="color: #0000ff;">const</span> <span style="color: #000000;">&amp;</span>path<span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">const</span>;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #0000ff;">private</span><span style="color: #000000;">:</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        QQuickView <span style="color: #000000;">*</span>currentView_;    </div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #000000;">&#125;</span>;</div></li></ol></pre></code><hr />
</div><br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code"><pre class="qt" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">screenCapture.<span style="color: #009900;">cpp</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #339900;">#include &lt;QPixmap&gt;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #339900;">#include &lt;QQuickView&gt;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #339900;">#include &lt;QString&gt;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #339900;">#include &quot;screenCapture.hpp&quot;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    screenCapture<span style="color: #000000;">::</span><span style="color: #009900;">screenCapture</span><span style="color: #000000;">&#40;</span>QQuickView <span style="color: #000000;">*</span>currentView<span style="color: #000000;">&#41;</span> <span style="color: #000000;">:</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <a href="http://qt-project.org/doc/qt-4.8/qobject.html"><span style="">QObject</span></a><span style="color: #000000;">&#40;</span><span style="color: #0000dd;">0</span><span style="color: #000000;">&#41;</span>, currentView_<span style="color: #000000;">&#40;</span>currentView<span style="color: #000000;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #0000ff;">void</span> screenCapture<span style="color: #000000;">::</span><span style="color: #009900;">capture</span><span style="color: #000000;">&#40;</span><a href="http://qt-project.org/doc/qt-4.8/qstring.html"><span style="">QString</span></a> <span style="color: #0000ff;">const</span> <span style="color: #000000;">&amp;</span>path<span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">const</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <a href="http://qt-project.org/doc/qt-4.8/qpixmap.html"><span style="">QPixmap</span></a><span style="color: #000000;">::</span><span style="color: #009900;">grabWidget</span><span style="color: #000000;">&#40;</span>currentView_<span style="color: #000000;">&#41;</span>.<span style="color: #009900;">save</span><span style="color: #000000;">&#40;</span>path<span style="color: #000000;">&#41;</span>;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #000000;">&#125;</span></div></li></ol></pre></code><hr />
</div><br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code"><pre class="qt" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">main.<span style="color: #009900;">cpp</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #339900;">#include &lt;QGuiApplication&gt;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #339900;">#include &lt;QQuickPaintedItem&gt;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #339900;">#include &lt;QQuickView&gt;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #339900;">#include &lt;QQmlContext&gt;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #339900;">#include &quot;screenCapture.hpp&quot;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #0000ff;">int</span> main<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">int</span> argc, <span style="color: #0000ff;">char</span> <span style="color: #000000;">*</span>argv<span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        QGuiApplication app<span style="color: #000000;">&#40;</span>argc, argv<span style="color: #000000;">&#41;</span>;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        qmlRegisterType&lt;screenCapture&gt;<span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;Image&quot;</span>, <span style="color: #0000dd;">1</span>, <span style="color: #0000dd;">0</span>, <span style="color: #666666;">&quot;ScreenCapture&quot;</span><span style="color: #000000;">&#41;</span>;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        qmlRegisterType&lt;saveAbleImage&gt;<span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;Image&quot;</span>, <span style="color: #0000dd;">1</span>, <span style="color: #0000dd;">0</span>, <span style="color: #666666;">&quot;SaveAbleImage&quot;</span><span style="color: #000000;">&#41;</span>;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        QQuickView view;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        view.<span style="color: #009900;">setResizeMode</span><span style="color: #000000;">&#40;</span>QQuickView<span style="color: #000000;">::</span><span style="color: #009900;">SizeRootObjectToView</span><span style="color: #000000;">&#41;</span>;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        view.<span style="color: #009900;">setSource</span><span style="color: #000000;">&#40;</span>QStringLiteral<span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;/Users/Qt/program/experiment_apps_and_libs/funnyCamera/qml/funnyCamera/main.qml&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        view.<span style="color: #009900;">show</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        screenCapture screenClass<span style="color: #000000;">&#40;</span><span style="color: #000000;">&amp;</span>view<span style="color: #000000;">&#41;</span>;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        view.<span style="color: #009900;">rootContext</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">-</span>&gt;setContextProperty<span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;screenObject&quot;</span>, <span style="color: #000000;">&amp;</span>screenClass<span style="color: #000000;">&#41;</span>;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #0000ff;">return</span> app.<span style="color: #009900;">exec</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #000000;">&#125;</span></div></li></ol></pre></code><hr />
</div><br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code"><pre class="qt" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">main.<span style="color: #009900;">qml</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    import QtQuick <span style="color: #0000dd;">2.0</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    Rectangle<span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        id <span style="color: #000000;">:</span> root</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        width <span style="color: #000000;">:</span> <span style="color: #0000dd;">1024</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        height <span style="color: #000000;">:</span> <span style="color: #0000dd;">768</span>    </div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        MouseArea<span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            anchors.<span style="color: #009900;">fill</span><span style="color: #000000;">:</span> root</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            onClicked<span style="color: #000000;">:</span> <span style="color: #000000;">&#123;</span>          </div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                console.<span style="color: #009900;">log</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;save image&quot;</span><span style="color: #000000;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                screenObject.<span style="color: #009900;">capture</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;Pictures/saveTest.jpg&quot;</span><span style="color: #000000;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            <span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #000000;">&#125;</span></div></li></ol></pre></code><hr />
</div><br />
error message<br />
<br />
QPixmap::grabWidget is deprecated, use QWidget::grab() instead<br />
QMetaObject::invokeMethod: No such method QQuickView::grab(QRect)<br />
<br />
<div style="padding: 0px;">
<hr style="height: 1px; background-color: rgb(196,196,196); border: 0; margin-bottom: 2px; display: block;" /><i>Added after 1 2 minutes:</i>
</div><br />
<br />
I found a solution, pretty simple, change the function “capture” to<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code"><pre class="qt" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0000ff;">void</span> screenCapture<span style="color: #000000;">::</span><span style="color: #009900;">capture</span><span style="color: #000000;">&#40;</span><a href="http://qt-project.org/doc/qt-4.8/qstring.html"><span style="">QString</span></a> <span style="color: #0000ff;">const</span> <span style="color: #000000;">&amp;</span>path<span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">const</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <a href="http://qt-project.org/doc/qt-4.8/qimage.html"><span style="">QImage</span></a> img <span style="color: #000000;">=</span> currentView_<span style="color: #000000;">-</span>&gt;grabWindow<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        img.<span style="color: #009900;">save</span><span style="color: #000000;">&#40;</span>path<span style="color: #000000;">&#41;</span>;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #000000;">&#125;</span></div></li></ol></pre></code><hr />
</div></div>

]]></content:encoded>
			<category domain="http://www.qtcentre.org/forums/42-Qt-Quick">Qt Quick</category>
			<dc:creator>stereoMatching</dc:creator>
			<guid isPermaLink="true">http://www.qtcentre.org/threads/54964-How-to-take-ScreenShot-Qt-QML</guid>
		</item>
		<item>
			<title>Render a QML scene into a texture and save it</title>
			<link>http://www.qtcentre.org/threads/54954-Render-a-QML-scene-into-a-texture-and-save-it?goto=newpost</link>
			<pubDate>Thu, 13 Jun 2013 03:57:37 GMT</pubDate>
			<description>How could I translate the QML scene(like Rectangle, Image etc) into a texture and save it? 
Anyone tried this before?If I can translate the...</description>
			<content:encoded><![CDATA[<div>How could I translate the QML scene(like Rectangle, Image etc) into a texture and save it?<br />
Anyone tried this before?If I can translate the components to texture, then I should be able to save<br />
the image after processing by particle systems or shaderEffects</div>

]]></content:encoded>
			<category domain="http://www.qtcentre.org/forums/42-Qt-Quick">Qt Quick</category>
			<dc:creator>stereoMatching</dc:creator>
			<guid isPermaLink="true">http://www.qtcentre.org/threads/54954-Render-a-QML-scene-into-a-texture-and-save-it</guid>
		</item>
		<item>
			<title>Regarding  the use of QML and QWidget</title>
			<link>http://www.qtcentre.org/threads/54951-Regarding-the-use-of-QML-and-QWidget?goto=newpost</link>
			<pubDate>Thu, 13 Jun 2013 01:35:48 GMT</pubDate>
			<description>Hi guys, 
I we are developing a web based software platform . The current plan for the current product development interface is archived with  
With...</description>
			<content:encoded><![CDATA[<div>Hi guys,<br />
I we are developing a web based software platform . The current plan for the current product development interface is archived with <br />
With QMainWindow, QDockWidget achieve MainWindow and SubWindow.<br />
All SubWindow achieve internal use QQuickView<br />
&lt;List Of Group &amp; Thumbnail&gt; window using QML's ListView Item realization (QML)<br />
&lt;Main View of Group&gt; window with QQuickPaintedItem derived class (derived class) to achieve the Tree of QML Item structure to form (QML) All Item painting based on traditional painting method QPainter<br />
&lt;Special Edit View&gt;, &lt;Item Properties&gt; window is to use QML's Quick Controls, Layout to form. (QML)<br />
&lt;Detail Structure&gt; window with a TreeView Item to achieve. (QML)<br />
Questions I have are<br />
<br />
The above method can be seen as the best way to do? ? Is there a more reasonable alternative method? ?<br />
<br />
The mix QML and Widget developers will instead lead to more complex its scalability is even more down?<br />
<br />
Does not use the QML but in the traditional way to develop Widget then there will be any adverse situation? ? ?<br />
<br />
Thanks a lot ,<br />
Best Regards,<br />
Biman</div>

]]></content:encoded>
			<category domain="http://www.qtcentre.org/forums/42-Qt-Quick">Qt Quick</category>
			<dc:creator>bibuboy</dc:creator>
			<guid isPermaLink="true">http://www.qtcentre.org/threads/54951-Regarding-the-use-of-QML-and-QWidget</guid>
		</item>
		<item>
			<title>Change properties of delegates in ListView</title>
			<link>http://www.qtcentre.org/threads/54948-Change-properties-of-delegates-in-ListView?goto=newpost</link>
			<pubDate>Wed, 12 Jun 2013 18:48:50 GMT</pubDate>
			<description>Hello everyone,  
 
even though I am quite new in this community, I hope that someone can help me with a huge problem for me. 
 
I am trying to...</description>
			<content:encoded><![CDATA[<div>Hello everyone, <br />
<br />
even though I am quite new in this community, I hope that someone can help me with a huge problem for me.<br />
<br />
I am trying to change the opacity of a delegate, but I have no idea how to adress it.<br />
<br />
How can I change the opacity of a certain delegate, when I click the MouseArea?<br />
<br />
Thanks for the help!<br />
<br />
<br />
<b>The Fraction:</b><br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code"><pre class="qt" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">ListView <span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                id<span style="color: #000000;">:</span> imageList</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                property <span style="color: #0000ff;">int</span> selection<span style="color: #000000;">:</span> <span style="color: #0000dd;">0</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                anchors.<span style="color: #009900;">centerIn</span><span style="color: #000000;">:</span> parent</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                width<span style="color: #000000;">:</span> <span style="color: #0000dd;">75</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                height<span style="color: #000000;">:</span> <span style="color: #0000dd;">500</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                spacing<span style="color: #000000;">:</span> <span style="color: #0000dd;">80</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                FolderListModel <span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                    id<span style="color: #000000;">:</span> imageFolderModel</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                    showDirs<span style="color: #000000;">:</span> <span style="color: #0000ff;">true</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                    folder<span style="color: #000000;">:</span> <span style="color: #666666;">&quot;/opt/org.seadot.desktop/qml/Apps/&quot;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                    nameFilters<span style="color: #000000;">:</span> <span style="color: #000000;">&#91;</span> <span style="color: #666666;">&quot;*.svg&quot;</span> <span style="color: #000000;">&#93;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                <span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                Component <span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                    id<span style="color: #000000;">:</span> imageFileDelegate</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                    Item <span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                        Image<span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                            id<span style="color: #000000;">:</span> launcherItem</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                            width<span style="color: #000000;">:</span> <span style="color: #0000dd;">75</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                            height<span style="color: #000000;">:</span> <span style="color: #0000dd;">75</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                            sourceSize.<span style="color: #009900;">width</span><span style="color: #000000;">:</span> <span style="color: #0000dd;">75</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                            sourceSize.<span style="color: #009900;">height</span><span style="color: #000000;">:</span> <span style="color: #0000dd;">75</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                            source<span style="color: #000000;">:</span> <span style="color: #666666;">&quot;file:///opt/org.seadot.desktop/qml/Apps/&quot;</span><span style="color: #000000;">+</span>fileName<span style="color: #000000;">+</span><span style="color: #666666;">&quot;/icon.svg&quot;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                            MouseArea <span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                                anchors.<span style="color: #009900;">fill</span><span style="color: #000000;">:</span> parent</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                                onClicked<span style="color: #000000;">:</span> <span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                                    imageList.<span style="color: #009900;">selection</span> <span style="color: #000000;">=</span> index;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                                    imageList.<span style="color: #009900;">model</span>.<span style="color: #009900;">opacity</span> <span style="color: #000000;">=</span> <span style="color: #0000dd;">0.5</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                                <span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                            <span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                        <span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                    <span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                <span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                model<span style="color: #000000;">:</span> imageFolderModel</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                delegate<span style="color: #000000;">:</span> imageFileDelegate</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            <span style="color: #000000;">&#125;</span></div></li></ol></pre></code><hr />
</div></div>

]]></content:encoded>
			<category domain="http://www.qtcentre.org/forums/42-Qt-Quick">Qt Quick</category>
			<dc:creator>SteelBlade</dc:creator>
			<guid isPermaLink="true">http://www.qtcentre.org/threads/54948-Change-properties-of-delegates-in-ListView</guid>
		</item>
		<item>
			<title>How to access child properties from another child in QML</title>
			<link>http://www.qtcentre.org/threads/54943-How-to-access-child-properties-from-another-child-in-QML?goto=newpost</link>
			<pubDate>Wed, 12 Jun 2013 09:42:53 GMT</pubDate>
			<description>I want to change image(child of Rectangle) on mouse hover of MouseArea(child of Rectangle) 
here is my code: 
Rectangle 
{ 
    width: 600; height:...</description>
			<content:encoded><![CDATA[<div>I want to change image(child of Rectangle) on mouse hover of MouseArea(child of Rectangle)<br />
here is my code:<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code"><pre class="javascript" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">Rectangle</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    width<span style="color: #339933;">:</span> <span style="color: #CC0000;">600</span><span style="color: #339933;">;</span> height<span style="color: #339933;">:</span> <span style="color: #CC0000;">400</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    Row</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        id<span style="color: #339933;">:</span> myRow<span style="color: #339933;">;</span> spacing<span style="color: #339933;">:</span> <span style="color: #CC0000;">5</span><span style="color: #339933;">;</span> x<span style="color: #339933;">:</span> <span style="color: #CC0000;">50</span><span style="color: #339933;">;</span> y<span style="color: #339933;">:</span> <span style="color: #CC0000;">200</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        Repeater</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            id<span style="color: #339933;">:</span> myRepeater<span style="color: #339933;">;</span> model<span style="color: #339933;">:</span> <span style="color: #CC0000;">10</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            Rectangle</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                width<span style="color: #339933;">:</span> <span style="color: #CC0000;">100</span><span style="color: #339933;">;</span> height<span style="color: #339933;">:</span> <span style="color: #CC0000;">100</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                property int myIndex<span style="color: #339933;">:</span> index</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                Image</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                    source<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;../GrayPoint.png&quot;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                MouseArea</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                    id<span style="color: #339933;">:</span> mouseArea<span style="color: #339933;">;</span> anchors.<span style="color: #660066;">fill</span><span style="color: #339933;">:</span> parent<span style="color: #339933;">;</span> hoverEnabled<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">true</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                    onEntered<span style="color: #339933;">:</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                        updateUI<span style="color: #009900;">&#40;</span> parent <span style="color: #009900;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	<span style="color: #003366; font-weight: bold;">function</span> updateUI<span style="color: #009900;">&#40;</span> theParent <span style="color: #009900;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        theParent.<span style="color: #660066;">childAt</span><span style="color: #009900;">&#40;</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">0</span> <span style="color: #009900;">&#41;</span>.<span style="color: #660066;">source</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;../RedPoint.png&quot;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;">&#125;</span></div></li></ol></pre></code><hr />
</div></div>

]]></content:encoded>
			<category domain="http://www.qtcentre.org/forums/42-Qt-Quick">Qt Quick</category>
			<dc:creator>hparihar88</dc:creator>
			<guid isPermaLink="true">http://www.qtcentre.org/threads/54943-How-to-access-child-properties-from-another-child-in-QML</guid>
		</item>
		<item>
			<title>Capture the camera image after postprocessing by shaderEffect</title>
			<link>http://www.qtcentre.org/threads/54937-Capture-the-camera-image-after-postprocessing-by-shaderEffect?goto=newpost</link>
			<pubDate>Wed, 12 Jun 2013 05:44:49 GMT</pubDate>
			<description><![CDATA[Using shaderEffect to do some postprocessing on the camera images, the codes 
 
<div class="bbcode_container"> 
	<div class="bbcode_description">Qt...]]></description>
			<content:encoded><![CDATA[<div>Using shaderEffect to do some postprocessing on the camera images, the codes<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code"><pre class="qt" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">camera.<span style="color: #009900;">imageCapture</span>.<span style="color: #009900;">capture</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span></div></li></ol></pre></code><hr />
</div><br />
Can’t catch the image after postprocessing but catch the original image before postprocessing.</div>

]]></content:encoded>
			<category domain="http://www.qtcentre.org/forums/42-Qt-Quick">Qt Quick</category>
			<dc:creator>stereoMatching</dc:creator>
			<guid isPermaLink="true">http://www.qtcentre.org/threads/54937-Capture-the-camera-image-after-postprocessing-by-shaderEffect</guid>
		</item>
		<item>
			<title>Weird behavior when switching the view between Image and Camera</title>
			<link>http://www.qtcentre.org/threads/54904-Weird-behavior-when-switching-the-view-between-Image-and-Camera?goto=newpost</link>
			<pubDate>Sun, 09 Jun 2013 12:27:48 GMT</pubDate>
			<description><![CDATA[Trying to switch the view between camera and image, but the results are pretty weird 
 
toolBarTest.qml 
<div class="bbcode_container"> 
	<div...]]></description>
			<content:encoded><![CDATA[<div>Trying to switch the view between camera and image, but the results are pretty weird<br />
<br />
toolBarTest.qml<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code"><pre class="qt" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">import QtQuick <span style="color: #0000dd;">2.0</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">Item<span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    id<span style="color: #000000;">:</span>root</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    height<span style="color: #000000;">:</span> <span style="color: #0000dd;">800</span>; width<span style="color: #000000;">:</span> <span style="color: #0000dd;">144</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #0000ff;">signal</span> fullScreen<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #0000ff;">signal</span> camera<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #0000ff;">signal</span> photo<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    Column<span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        id<span style="color: #000000;">:</span> toolBarColumn</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        anchors.<span style="color: #009900;">fill</span><span style="color: #000000;">:</span> root</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        spacing<span style="color: #000000;">:</span> <span style="color: #0000dd;">10</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        Rectangle<span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            width<span style="color: #000000;">:</span> <span style="color: #0000dd;">144</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            height<span style="color: #000000;">:</span> <span style="color: #0000dd;">70</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            color<span style="color: #000000;">:</span> <span style="color: #666666;">&quot;blue&quot;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            Text<span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                text<span style="color: #000000;">:</span> <span style="color: #666666;">&quot;fullScreen&quot;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            <span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            MouseArea<span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                anchors.<span style="color: #009900;">fill</span><span style="color: #000000;">:</span> parent</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                onClicked<span style="color: #000000;">:</span> <span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                    fullScreen<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                <span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            <span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        Rectangle<span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            width<span style="color: #000000;">:</span> <span style="color: #0000dd;">144</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            height<span style="color: #000000;">:</span> <span style="color: #0000dd;">70</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            color<span style="color: #000000;">:</span> <span style="color: #666666;">&quot;blue&quot;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            Text<span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                text<span style="color: #000000;">:</span> <span style="color: #666666;">&quot;camera&quot;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            <span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            MouseArea<span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                anchors.<span style="color: #009900;">fill</span><span style="color: #000000;">:</span> parent</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                onClicked<span style="color: #000000;">:</span> <span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                    camera<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                <span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            <span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        Rectangle<span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            width<span style="color: #000000;">:</span> <span style="color: #0000dd;">144</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            height<span style="color: #000000;">:</span> <span style="color: #0000dd;">70</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            color<span style="color: #000000;">:</span> <span style="color: #666666;">&quot;blue&quot;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            Text<span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                text<span style="color: #000000;">:</span> <span style="color: #666666;">&quot;photo&quot;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            <span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            MouseArea<span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                anchors.<span style="color: #009900;">fill</span><span style="color: #000000;">:</span> parent</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                onClicked<span style="color: #000000;">:</span> <span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                    photo<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                <span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            <span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&#125;</span></div></li></ol></pre></code><hr />
</div><br />
photoTest.qml<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code"><pre class="qt" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">import QtQuick <span style="color: #0000dd;">2.0</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">import QtMultimedia <span style="color: #0000dd;">5.0</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">Rectangle<span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    id<span style="color: #000000;">:</span> root</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    width<span style="color: #000000;">:</span> <span style="color: #0000dd;">480</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    height<span style="color: #000000;">:</span> <span style="color: #0000dd;">320</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    color<span style="color: #000000;">:</span> <span style="color: #666666;">&quot;black&quot;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    state<span style="color: #000000;">:</span> <span style="color: #666666;">&quot;PHOTO&quot;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    property alias source<span style="color: #000000;">:</span> largeImage.<span style="color: #009900;">source</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    property var theID<span style="color: #000000;">:</span> largeImage</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    QtObject<span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        id<span style="color: #000000;">:</span> param</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        property var theID<span style="color: #000000;">:</span> largeImage</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    Image<span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        id <span style="color: #000000;">:</span> largeImage</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        anchors.<span style="color: #009900;">fill</span><span style="color: #000000;">:</span> parent</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        cache<span style="color: #000000;">:</span> <span style="color: #0000ff;">false</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        fillMode<span style="color: #000000;">:</span> Image.<span style="color: #009900;">PreserveAspectFit</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        smooth<span style="color: #000000;">:</span> <span style="color: #0000ff;">true</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    Camera<span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        id<span style="color: #000000;">:</span> camera</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    VideoOutput <span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        id<span style="color: #000000;">:</span> videoOutput</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        anchors.<span style="color: #009900;">fill</span><span style="color: #000000;">:</span> parent</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        source<span style="color: #000000;">:</span> camera</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    states<span style="color: #000000;">:</span><span style="color: #000000;">&#91;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        State <span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            name<span style="color: #000000;">:</span> <span style="color: #666666;">&quot;PHOTO&quot;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            StateChangeScript<span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                script<span style="color: #000000;">:</span><span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                    camera.<span style="color: #009900;">stop</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                    param.<span style="color: #009900;">theID</span> <span style="color: #000000;">=</span> largeImage</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                <span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            <span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            PropertyChanges <span style="color: #000000;">&#123;</span> target<span style="color: #000000;">:</span> largeImage; opacity<span style="color: #000000;">:</span> <span style="color: #0000dd;">1</span><span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            PropertyChanges <span style="color: #000000;">&#123;</span> target<span style="color: #000000;">:</span> videoOutput; opacity<span style="color: #000000;">:</span> <span style="color: #0000dd;">0</span><span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #000000;">&#125;</span>,</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        State <span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            name<span style="color: #000000;">:</span> <span style="color: #666666;">&quot;CAMERA&quot;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            StateChangeScript<span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                script<span style="color: #000000;">:</span><span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                    camera.<span style="color: #009900;">captureMode</span> <span style="color: #000000;">=</span> Camera.<span style="color: #009900;">CaptureStillImage</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                    camera.<span style="color: #009900;">start</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                    param.<span style="color: #009900;">theID</span> <span style="color: #000000;">=</span> videoOutput</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                <span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            <span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            PropertyChanges <span style="color: #000000;">&#123;</span>target<span style="color: #000000;">:</span> largeImage; opacity<span style="color: #000000;">:</span> <span style="color: #0000dd;">0</span><span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            PropertyChanges <span style="color: #000000;">&#123;</span> target<span style="color: #000000;">:</span> videoOutput; opacity<span style="color: #000000;">:</span> <span style="color: #0000dd;">1</span><span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #000000;">&#93;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&#125;</span></div></li></ol></pre></code><hr />
</div><br />
main.qml<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code"><pre class="qt" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">import QtQuick <span style="color: #0000dd;">2.0</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">Rectangle <span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    id<span style="color: #000000;">:</span> root</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    width<span style="color: #000000;">:</span> <span style="color: #0000dd;">800</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    height<span style="color: #000000;">:</span> <span style="color: #0000dd;">480</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    QtObject<span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        id<span style="color: #000000;">:</span> param</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        property string previousFullScreenState</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    ToolBarTest<span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        id<span style="color: #000000;">:</span> toolBarTest</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        onFullScreen<span style="color: #000000;">:</span> <span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            param.<span style="color: #009900;">previousFullScreenState</span> <span style="color: #000000;">=</span> root.<span style="color: #009900;">state</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            root.<span style="color: #009900;">state</span> <span style="color: #000000;">=</span> <span style="color: #666666;">&quot;FULLSCREEN&quot;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        onPhoto<span style="color: #000000;">:</span> <span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            root.<span style="color: #009900;">state</span> <span style="color: #000000;">=</span> <span style="color: #666666;">&quot;PHOTO&quot;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        onCamera<span style="color: #000000;">:</span> <span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            root.<span style="color: #009900;">state</span> <span style="color: #000000;">=</span> <span style="color: #666666;">&quot;CAMERA&quot;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    PhotoTest<span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        id<span style="color: #000000;">:</span> photoTest</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        anchors.<span style="color: #009900;">left</span><span style="color: #000000;">:</span> toolBarTest.<span style="color: #009900;">right</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        width<span style="color: #000000;">:</span> parent.<span style="color: #009900;">width</span> <span style="color: #000000;">-</span> toolBarTest.<span style="color: #009900;">width</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        source<span style="color: #000000;">:</span> <span style="color: #666666;">&quot;/Users/yyyy/Downloads/1359170070532.jpg&quot;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        MouseArea<span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            anchors.<span style="color: #009900;">fill</span><span style="color: #000000;">:</span> parent</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            onClicked<span style="color: #000000;">:</span> <span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                <span style="color: #0000ff;">if</span><span style="color: #000000;">&#40;</span>root.<span style="color: #009900;">state</span> <span style="color: #000000;">==</span> <span style="color: #666666;">&quot;FULLSCREEN&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                    root.<span style="color: #009900;">state</span> <span style="color: #000000;">=</span> param.<span style="color: #009900;">previousFullScreenState</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                <span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            <span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    states<span style="color: #000000;">:</span> <span style="color: #000000;">&#91;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        State <span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            name<span style="color: #000000;">:</span> <span style="color: #666666;">&quot;PHOTO&quot;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            PropertyChanges <span style="color: #000000;">&#123;</span> target<span style="color: #000000;">:</span> photoTest; state<span style="color: #000000;">:</span> <span style="color: #666666;">&quot;PHOTO&quot;</span><span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            PropertyChanges <span style="color: #000000;">&#123;</span> target<span style="color: #000000;">:</span> toolBarTest; width<span style="color: #000000;">:</span> <span style="color: #0000dd;">144</span><span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #000000;">&#125;</span>,</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        State <span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            name<span style="color: #000000;">:</span> <span style="color: #666666;">&quot;CAMERA&quot;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            PropertyChanges <span style="color: #000000;">&#123;</span> target<span style="color: #000000;">:</span> photoTest; state<span style="color: #000000;">:</span> <span style="color: #666666;">&quot;CAMERA&quot;</span><span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            PropertyChanges <span style="color: #000000;">&#123;</span> target<span style="color: #000000;">:</span> toolBarTest; width<span style="color: #000000;">:</span> <span style="color: #0000dd;">144</span><span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #000000;">&#125;</span>,</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        State <span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            name<span style="color: #000000;">:</span> <span style="color: #666666;">&quot;FULLSCREEN&quot;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            PropertyChanges <span style="color: #000000;">&#123;</span> target<span style="color: #000000;">:</span> toolBarTest; width<span style="color: #000000;">:</span> <span style="color: #0000dd;">0</span><span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #000000;">&#93;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&#125;</span></div></li></ol></pre></code><hr />
</div><br />
Once the state is &quot;CAMERA&quot; and I click on the &quot;fullScreen&quot; button<br />
The photoTest.qml do not show me the fullsize of the camera but<br />
the fullsize of the photo, what is happening?What kind of error do I make?<br />
<br />
Qt version : 5.1Beta<br />
os : mac osx 10.8.3<br />
compiler: clang 3.2</div>

]]></content:encoded>
			<category domain="http://www.qtcentre.org/forums/42-Qt-Quick">Qt Quick</category>
			<dc:creator>stereoMatching</dc:creator>
			<guid isPermaLink="true">http://www.qtcentre.org/threads/54904-Weird-behavior-when-switching-the-view-between-Image-and-Camera</guid>
		</item>
		<item>
			<title>setCacheMode problem in custom QDeclarativeItem</title>
			<link>http://www.qtcentre.org/threads/54897-setCacheMode-problem-in-custom-QDeclarativeItem?goto=newpost</link>
			<pubDate>Sat, 08 Jun 2013 15:20:16 GMT</pubDate>
			<description>If I set DeviceCoordinateCache on my custom QDeclarativeItem, Qt will render my item (or part of it) into an off-screen QPixmap and then attempt to...</description>
			<content:encoded><![CDATA[<div>If I set DeviceCoordinateCache on my custom QDeclarativeItem, Qt will render my item (or part of it) into an off-screen QPixmap and then attempt to reuse it on subsequent repaints. The problem is that the bounding rect of my item is quite big, but I don't always expect to repaint it all. Rather, I check the height and contentY of a parent Flickable to decide what to repaint. Now, the problem is, that Qt always wants to store into its cache a portion of my item that is greater than the dimensions of the parent Flickable, but I don't know the portion's dimensions, hence I render into the cache wrongly. There are gaps in the pixmap, stored in the cache, that are not repainted. I have tried to:<br />
<br />
- reissue the paint request to fit the parent Flickable, whenever I detect that Qt wants my whole item repainted (this is ignored by Qt),<br />
<br />
- clear the pixmap cache to invalidate the cache after Qt requests a full repaint (this does not work either, the cache is not cleared for some reason, even if I call QPixmapCache::clear() and QPixmapCache::setCacheLimit(0)).<br />
<br />
If only I knew what portion of my Item is going to be stored in the cache. The field exposedRect in the QStyleOptionGraphicsItem object is of no help, as it encompasses my whole item. Please help.</div>

]]></content:encoded>
			<category domain="http://www.qtcentre.org/forums/42-Qt-Quick">Qt Quick</category>
			<dc:creator>ugluk</dc:creator>
			<guid isPermaLink="true">http://www.qtcentre.org/threads/54897-setCacheMode-problem-in-custom-QDeclarativeItem</guid>
		</item>
		<item>
			<title>Extract QImage from QQuickItem</title>
			<link>http://www.qtcentre.org/threads/54872-Extract-QImage-from-QQuickItem?goto=newpost</link>
			<pubDate>Thu, 06 Jun 2013 14:08:44 GMT</pubDate>
			<description><![CDATA[Hi, 
 
I would like to process an image loaded into a Flickable QML element in C++ land but I am failing to obtain the original image. So far I'm...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I would like to process an image loaded into a Flickable QML element in C++ land but I am failing to obtain the original image. So far I'm only seem able to obtain an image of the QQuickWindow<br />
and would liek to know if there is a way to obtain the whole loaded image.<br />
<br />
I am calling a Q_INVOKABLE method of a C++ object as follows:<br />
<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code"><pre class="qt" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">Flickable <span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        id<span style="color: #000000;">:</span> content</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        clip<span style="color: #000000;">:</span> <span style="color: #0000ff;">false</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        anchors.<span style="color: #009900;">fill</span><span style="color: #000000;">:</span> parent</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        boundsBehavior<span style="color: #000000;">:</span> Flickable.<span style="color: #009900;">StopAtBounds</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        Loader <span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            id<span style="color: #000000;">:</span> contentLoader</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            anchors.<span style="color: #009900;">centerIn</span><span style="color: #000000;">:</span> parent</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        MouseArea <span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            anchors.<span style="color: #009900;">fill</span><span style="color: #000000;">:</span> parent</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            onClicked<span style="color: #000000;">:</span> <span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                console.<span style="color: #009900;">log</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;[veo] onClicked - capture triggered&quot;</span><span style="color: #000000;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                cplusplusobject.<span style="color: #009900;">process</span><span style="color: #000000;">&#40;</span>contentLoader.<span style="color: #009900;">item</span><span style="color: #000000;">&#41;</span>                 &lt;<span style="color: #000000;">-----------------</span> call to C<span style="color: #000000;">++</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            <span style="color: #000000;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #000000;">&#125;</span></div></li></ol></pre></code><hr />
</div><br />
<br />
In  C++ I  have:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code"><pre class="qt" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0000ff;">void</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">Cplusplusobject<span style="color: #000000;">::</span><span style="color: #009900;">process</span><span style="color: #000000;">&#40;</span><span style="color: #0000ff;">const</span> <a href="http://qt-project.org/doc/qt-4.8/qvariant.html"><span style="">QVariant</span></a> <span style="color: #000000;">&amp;</span>v<span style="color: #000000;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    qDebug<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &lt;&lt; <span style="color: #666666;">&quot;[veo]&quot;</span> &lt;&lt; __FUNCTION__;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    QQuickItem <span style="color: #000000;">*</span>item <span style="color: #000000;">=</span> qobject_cast&lt;QQuickItem <span style="color: #000000;">*</span>&gt;<span style="color: #000000;">&#40;</span> v.<span style="color: #009900;">value</span>&lt;QObject<span style="color: #000000;">*</span>&gt;<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    qDebug<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &lt;&lt; <span style="color: #666666;">&quot;Item dimensions:&quot;</span> &lt;&lt; item<span style="color: #000000;">-</span>&gt;width<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &lt;&lt; item<span style="color: #000000;">-</span>&gt;height<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    item<span style="color: #000000;">-</span>&gt;dumpObjectInfo<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    QQuickWindow <span style="color: #000000;">*</span>window <span style="color: #000000;">=</span> item<span style="color: #000000;">-</span>&gt;window<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <a href="http://qt-project.org/doc/qt-4.8/qimage.html"><span style="">QImage</span></a> image <span style="color: #000000;">=</span> window<span style="color: #000000;">-</span>&gt;grabWindow<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">...</div></li></ol></pre></code><hr />
</div><br />
The printed item dimensions do correspond to the original image but I fail to see how to turn the QQuickItem into a QImage.<br />
<br />
Any suggestions please?</div>

]]></content:encoded>
			<category domain="http://www.qtcentre.org/forums/42-Qt-Quick">Qt Quick</category>
			<dc:creator>oberlus</dc:creator>
			<guid isPermaLink="true">http://www.qtcentre.org/threads/54872-Extract-QImage-from-QQuickItem</guid>
		</item>
	</channel>
</rss>
