<?xml version="1.0" encoding="UTF-8"?>

<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">

    
	<channel>

	<title>Qt DevNet forums: Qt Quick</title>
	<link>http://qt-project.org/forums/viewforum/12/</link>
	<description>RSS feed for latest threads in Qt Quick</description>
	<copyright>Copyright 2013 Qt Project</copyright>
	<docs>http://www.rssboard.org/rss-specification</docs>
	<generator>ExpressionEngine v2.3.1 http://expressionengine.com/</generator>
	<lastBuildDate>Wed, 01 Sep 2010 20:17:50 GMT</lastBuildDate>
	<atom:link href="http://qt-project.org/feeds/forum/12" rel="self" type="application/rss+xml" />

    

	
        <item>
            <title>qml svg element id</title>
            <link>http://qt-project.org/forums/viewthread/27923</link>
            <author>Dgzt</author>
            <description><![CDATA[Hi all!

	How can I set element id of svg image in QML?]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/27923</guid>
            <pubDate>Sat, 18 May 2013 21:05:45 GMT</pubDate>
        </item>
	
        <item>
            <title>defining constants for use in qml</title>
            <link>http://qt-project.org/forums/viewthread/27917</link>
            <author>josa</author>
            <description><![CDATA[Hi
I am just getting started in qml.

	I have some c++ bindings in QML and i have some function like Myqmlhelper.getiovalue( 40,15) that i call from QML

	So i would like to now if qml supports declaring defines like in C, so i can write Myqmlhelper.getiovalue( PUMP,15) instead of Myqmlhelper.getiovalue( 40,15).

	in C i would have #define PUMP 40
how can i do that in QML ?

	Or should i use enums in c++ instead of #defines and if so can i use them (enums) from QML ? 

	Johan]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/27917</guid>
            <pubDate>Sat, 18 May 2013 17:07:08 GMT</pubDate>
        </item>
	
        <item>
            <title>openGL (QGLWindow) functionality in QDeclarativeView</title>
            <link>http://qt-project.org/forums/viewthread/27889</link>
            <author>wspilot</author>
            <description><![CDATA[Hi,
I am working on a project for Sailfish OS (Qt 4.8) app.
I need to integrate openGL into QML using a QDeclarativeView.
Seen and tried the examples as shown in the Qt Forums.
They all:
set a QGLWidget as the viewport of the QDeclarativeView;
Use a QDeclarativeItem and re&#45;implement the paint function with: 
beginNativePainting() etc.;
qmlRegisterType is used to bind the QDeclarativeItem class to a QML type.

	This looks nice (as in the examples) if you have some simple fixed pipeline rendering, but I need to use a lot of extra openGL functionality (like setAttribute, QGLShaderProgram, compileSourceCode, etc.). 
This is all neatly implemented in QGLWidget, but not in QDeclarativeItem which is now responsible for the openGL rendering/painting.
So, is there a way have the QGLWidget available / accessible in QML?
Thanks.]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/27889</guid>
            <pubDate>Fri, 17 May 2013 12:15:35 GMT</pubDate>
        </item>
	
        <item>
            <title>Error using states to change between pages</title>
            <link>http://qt-project.org/forums/viewthread/27873</link>
            <author>john_god</author>
            <description><![CDATA[Hi 
I&#8217;m tring to change between pages using states, in a small game. This is what I did:

	main.qml:
Rectangle &#123;
&amp;nbsp; &amp;nbsp; id: root
&amp;nbsp; &amp;nbsp; ......
&amp;nbsp; &amp;nbsp; PagePanel &#123;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; id: pagepanel
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; state: activeState
&amp;nbsp; &amp;nbsp; &#125;
......
&#125;


	PagePanel.qml:
Item &#123;
&amp;nbsp; &amp;nbsp; id: root
&amp;nbsp; &amp;nbsp; width: 360
&amp;nbsp; &amp;nbsp; height: 420
&amp;nbsp;
&amp;nbsp; &amp;nbsp; property string activeState: &amp;quot;game&amp;quot;
&amp;nbsp; &amp;nbsp; states: &#91;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; State &#123;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; name: &amp;quot;menu&amp;quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PropertyChanges &#123;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; target: menuPage
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; opacity: 1
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; restoreEntryValues: true
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#125;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#125;,
&amp;nbsp;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; State &#123;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; name: &amp;quot;game&amp;quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PropertyChanges &#123;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; target: gamePage
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; opacity: 1
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; restoreEntryValues: true
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#125;
&amp;nbsp;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#125;
&amp;nbsp;
&amp;nbsp; &amp;nbsp; &#93;
&amp;nbsp;
&amp;nbsp;
&amp;nbsp; &amp;nbsp; PageMenu &#123;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; id: menuPage
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; anchors.fill: parent
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; opacity: 0
&amp;nbsp; &amp;nbsp; &amp;nbsp; // &amp;nbsp;onGameclick: root.activeState: &amp;quot;game&amp;quot;
&amp;nbsp; &amp;nbsp; &#125;
&amp;nbsp;
&amp;nbsp; &amp;nbsp; PageGame &#123;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; id: gamePage
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; anchors.fill: parent
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; opacity: 0
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// onSunClick2: root.activeState: &amp;quot;menu&amp;quot;
&amp;nbsp; &amp;nbsp; &#125;
&#125;


	The problem is if I uncomment lines 34 and 41, I get errors in main.qml line 4: Type PagePanel unavailable 
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PagePanel &#123; 
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;^ 


	and in lines 34 and 41 :  Expected token `;&apos; 
 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; onGameclick: root.activeState: &amp;quot;game&amp;quot; 
 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;^ 


	I very newbie in Qml, and I can&#8217;t figure out to change states. I also don&#8217;t know if this is the best approach, I read about pagestack wich perhaps would be another option ?]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/27873</guid>
            <pubDate>Fri, 17 May 2013 02:06:28 GMT</pubDate>
        </item>
	
        <item>
            <title>Increase Performance of Text and Large String</title>
            <link>http://qt-project.org/forums/viewthread/27862</link>
            <author>kitizz</author>
            <description><![CDATA[Hullo, hopefully a quick question.

	I&#8217;m creating an interface for a serial terminal. The text for that terminal is often growing in length, especially when something this happening.

	As its size increases, it becomes increasingly slow to update. I&#8217;m sure it has everything to do with the fact that it&#8217;s a few thousand pixels high and growing every 50ms.

	Is there a better way to handle the text in this situation?

	If it helps, I&#8217;m currently using TextArea&#123;&#125; for this.]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/27862</guid>
            <pubDate>Thu, 16 May 2013 19:08:49 GMT</pubDate>
        </item>
	
        <item>
            <title>Unfreezing the QQmlEngine for script evaluation before GUI loading</title>
            <link>http://qt-project.org/forums/viewthread/27857</link>
            <author>Statix</author>
            <description><![CDATA[In Qt 4.7 the QML Engine ran ontop of the QScriptEngine and had a special scriptClass which forced it into read&#45;only mode after creation. If you removed the scriptClass you could get write&#45;access temporarily to the engine and load a bunch of custom utility methods (or objects) which would remain global to all QML objects.

	The method of hijacking the internal engine (which was private) is described here: Importing an existing QScriptExtensionPlugin to QML [qt&#45;project.org] however this no longer applies because the Qt 5 version uses QJSEngine underneath and no longer has a scriptClass concept.

	If you jump into the internals it uses the EMCA script freeze object on the global object which locks it entirely unless you recreate it which looks to be a long backwards and unreliable process.

	Is there any way to unfreeze / prevent this mechanism temporarily so that one can inject custom definitions into the global object before it gets locked away? I know by design the Qt devs locked the global object so one can&#8217;t accidentally modify it but having no way to intentionally modify it from the C++ side prior to the lock is most annoying. If you use a standalone QJSEngine then you no longer have this problem. 

	All I&#8217;m really trying to do is:
QQmlEngine e;
e.evaluate&#40;&amp;quot;var Utils = Object; Utils.myMethod = function()&#123;&#125;;&amp;quot;&#41;;
&amp;nbsp;
//Give the engine to the QQmlViewer
QQmlViewer view&#40;e&#41;;
view.setSource&#40;&amp;quot;GUI.qml&amp;quot;&#41;;
view.show&#40;&#41;;
//at this point my QUI.qml javascript sections can reference the Utils class]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/27857</guid>
            <pubDate>Thu, 16 May 2013 15:30:36 GMT</pubDate>
        </item>
	
        <item>
            <title>How to perform tasks sequentially? [SOLVED]</title>
            <link>http://qt-project.org/forums/viewthread/27811</link>
            <author>Jacques</author>
            <description><![CDATA[Hello everyone,

	I am writing a program that download a database from another computer, and display it in a corresponding QML
view. But when I try to do so with the code below :

	&amp;nbsp; &amp;nbsp; NetworkModule *nwMod = new NetworkModule&#40;&#41;;
&amp;nbsp;
&amp;nbsp; &amp;nbsp; //cout&amp;lt;&amp;lt;nwMod&#45;&amp;gt;getStateReady()&amp;lt;&amp;lt;endl;
&amp;nbsp;
&amp;nbsp; &amp;nbsp; if&#40;nwMod&#45;&amp;gt;getStateReady&#40;&#41; == 1&#41;
&amp;nbsp; &amp;nbsp; &#123;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DataBase *dbLoad = new DataBase&#40;&#41;;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PatientModelSPS *modelsps = NULL;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; modelsps &amp;nbsp; = dbLoad&#45;&amp;gt;LoadDataBaseSPS&#40;modelsps&#41;;
&amp;nbsp;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //cout&amp;lt;&amp;lt;nwMod&#45;&amp;gt;getStateReady()&amp;lt;&amp;lt;endl;
&amp;nbsp;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; QmlManager *qmlMan = new QmlManager&#40;&#41;;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; qmlMan&#45;&amp;gt;showQMLInterface&#40;modelsps&#41;;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; QDeclarativeView view;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; view.setSource&#40;QUrl::fromLocalFile&#40;&amp;quot;./main.qml&amp;quot;&#41;&#41;;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //view.hide;
&amp;nbsp; &amp;nbsp; &#125;


	The program starts and stucks after the file was received.]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/27811</guid>
            <pubDate>Wed, 15 May 2013 12:45:39 GMT</pubDate>
        </item>
	
        <item>
            <title>[SOLVED] Wierd looking text in TableView section in Qt 5.1.0 Beta</title>
            <link>http://qt-project.org/forums/viewthread/27807</link>
            <author>riaank</author>
            <description><![CDATA[The text of the sections in a tableview are not rendered correctly. (It is the same sort of effect with text running  the &#8220;Scene Graph &#8211; OpenGL Under QML&#8221; example.)
Here is a screenshot od the TableView problem


	My code is simple:
import QtQuick 2.0
import QtQuick.Controls 1.0
import QtQuick.Window 2.0
&amp;nbsp;
ApplicationWindow &#123;
&amp;nbsp; &amp;nbsp; width: 640
&amp;nbsp; &amp;nbsp; height: 480
&amp;nbsp; &amp;nbsp; 
&amp;nbsp; &amp;nbsp; Component &#123;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; id: sectionDel
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Rectangle &#123;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; height: childrenRect.height
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; width: mainTable.width
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; color: &amp;quot;lightsteelblue&amp;quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Text &#123;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x: 20
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; text: section
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; font.bold: true
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#125;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#125;
&amp;nbsp; &amp;nbsp; &#125;
&amp;nbsp;
&amp;nbsp; &amp;nbsp; ListModel &#123;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;id: libraryModel
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ListElement&#123; title: &amp;quot;A Masterpiece&amp;quot; ; author: &amp;quot;Gabriel&amp;quot;; cat: &amp;quot;big&amp;quot; &#125;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ListElement&#123; title: &amp;quot;Outstanding&amp;quot; &amp;nbsp; ; author: &amp;quot;Frederik&amp;quot;; cat: &amp;quot;big&amp;quot; &#125;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ListElement&#123; title: &amp;quot;Brilliance&amp;quot; &amp;nbsp; &amp;nbsp;; author: &amp;quot;Jens&amp;quot;; cat: &amp;quot;small&amp;quot; &#125;
&amp;nbsp; &amp;nbsp; &#125;
&amp;nbsp; &amp;nbsp; TableView &#123;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;id: mainTable
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TableViewColumn&#123; role: &amp;quot;title&amp;quot; &amp;nbsp;; title: &amp;quot;Title&amp;quot; ; width: 100 &#125;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TableViewColumn&#123; role: &amp;quot;author&amp;quot; ; title: &amp;quot;Author&amp;quot; ; width: 200 &#125;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;model: libraryModel
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;section.property: &amp;quot;cat&amp;quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;section.criteria: ViewSection.FullString
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;section.delegate: sectionDel
&amp;nbsp; &amp;nbsp; &#125;
&#125;


	I am using windows 7 Enterprise 32bit
My opengl version according to &#8220;OpenGL Extensions Viewer&#8221; is 2.0.

	I get the following warnings/errors when running the QML project:
Starting C:\Qt\Qt5.1.0\5.1.0&#45;beta1\mingw47_32\bin\qmlscene.exe D:/prototypes/QuickWithControlsTest/QuickWithControlsTest.qml
getProcAddress: Unable to resolve &#8216;glGenFramebuffers&#8217;
getProcAddress: Unable to resolve &#8216;glGenFramebuffersOES&#8217;
getProcAddress: Unable to resolve &#8216;glGenFramebuffersARB&#8217;
getProcAddress: Unable to resolve &#8216;glBindFramebuffer&#8217;
getProcAddress: Unable to resolve &#8216;glBindFramebufferOES&#8217;
getProcAddress: Unable to resolve &#8216;glBindFramebufferARB&#8217;
getProcAddress: Unable to resolve &#8216;glFramebufferTexture2D&#8217;
getProcAddress: Unable to resolve &#8216;glFramebufferTexture2DOES&#8217;
getProcAddress: Unable to resolve &#8216;glFramebufferTexture2DARB&#8217;
QOpenGLShader::link: &#8220;No errors.&#8221; 
getProcAddress: Unable to resolve &#8216;glFramebufferRenderbuffer&#8217;
getProcAddress: Unable to resolve &#8216;glFramebufferRenderbufferOES&#8217;
getProcAddress: Unable to resolve &#8216;glFramebufferRenderbufferARB&#8217;
QOpenGLShader::link: &#8220;No errors.&#8221; 
QOpenGLShader::link: &#8220;No errors.&#8221; 
QOpenGLShader::link: &#8220;No errors.&#8221; 
QOpenGLShader::link: &#8220;No errors.&#8221;]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/27807</guid>
            <pubDate>Wed, 15 May 2013 11:45:37 GMT</pubDate>
        </item>
	
        <item>
            <title>[Solved] Can&apos;t dynamically add and display objects to QML from C++ (Qt 5.02)</title>
            <link>http://qt-project.org/forums/viewthread/27779</link>
            <author>blazern</author>
            <description><![CDATA[Hi all,

	I&#8217;ve been trying to learn how to dynamically add objects to QML from C++ code, but all the code I write doesn&#8217;t work.

	I want to add an object defined in Unit.qml to the application&#8217;s window (defined in generated file main.qml).

	I created a new Qt Quick 2 application (by Create Project &#8212;&amp;gt; Applications &#8212;&amp;gt; Qt Quick 2 Application (Built&#45;in Elements)), added a method for creating QML objects in class QtQuick2ApplicationViewer (the class was generated by Qt Creator), and called this method from main().

	Then tried to follow this [qt&#45;project.org] article, so the method I added to QtQuick2ApplicationViewer looked like this:

	void QtQuick2ApplicationViewer::addQmlObject&#40;&#41;
&#123;
&amp;nbsp; &amp;nbsp; QQmlComponent * component = new QQmlComponent&#40;this&#45;&amp;gt;engine&#40;&#41;, QUrl::fromLocalFile&#40;&amp;quot;Unit.qml&amp;quot;&#41;, this&#41;;
&amp;nbsp;
&amp;nbsp; &amp;nbsp; QObject * object = component&#45;&amp;gt;create&#40;&#41;;
&#125;


	Here&#8217;s Unit.qml code:

	import QtQuick 2.0
&amp;nbsp;
Item &#123;
&amp;nbsp; &amp;nbsp; id: unit
&amp;nbsp; &amp;nbsp; width: 40
&amp;nbsp; &amp;nbsp; height: 40
&amp;nbsp;
&amp;nbsp; &amp;nbsp; Image &#123;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; id: image
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; width: parent.width
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; height: parent.height
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; anchors.fill: parent
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; source: &amp;quot;content/unit.png&amp;quot;
&amp;nbsp; &amp;nbsp; &#125;
&#125;


	And it doesn&#8217;t work. Probably the problem is in my misunderstanding of QML&#45;C++ interacting, but I can&#8217;t figure out what&#8217;s wrong.
Could anyone help me, please?]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/27779</guid>
            <pubDate>Tue, 14 May 2013 17:33:37 GMT</pubDate>
        </item>
	
        <item>
            <title>debugging small memory / cpu leaks</title>
            <link>http://qt-project.org/forums/viewthread/27759</link>
            <author>archdove</author>
            <description><![CDATA[Hi

	I&#8217;ve left my application running during the night wondering if it will be stable till morning. It was.
But i noticed an enormous memory consumption this morning. And also the application uses more and more cpu the longer it runs.

	How can i debug this? Its only a small amount. 

	CPU consumption goes from 10% &#45;&amp;gt; 20%
RAM consumption goes from 2% &#45;&amp;gt; 6%

	The software has to be stable for at least 2 days eventually. So my question is: How do i debug this?

	I&#8217;ve tried Valgrind but i don&#8217;t understand it yet. 

	Thanks.]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/27759</guid>
            <pubDate>Tue, 14 May 2013 08:05:40 GMT</pubDate>
        </item>
	
        <item>
            <title>Use QML VideoOutput item with C++ QMediaPlayer?</title>
            <link>http://qt-project.org/forums/viewthread/27741</link>
            <author>spettmeis</author>
            <description><![CDATA[Hi,

	is it possible to render video from the C++ class QMediaPlayer in Quick2&#8217;s VideoOutput item? 

	I need to use real c++ features like the QVideoProbe, but still display via the Quick2 engine. I have tried to expose the QMediaPlayer object to QML like so,

	QMediaPlayer player;
QQuickView view;
view.engine&#40;&#41;&#45;&amp;gt;rootContext&#40;&#41;&#45;&amp;gt;setContextProperty&#40;&amp;quot;mediaplayer&amp;quot;, &amp;amp;player&#41;;


	and then use it in QML like this:

	&amp;nbsp; &amp;nbsp; VideoOutput &#123;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; id: videooutput
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; width: 320
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; height: 240
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; source: mediaplayer
&amp;nbsp; &amp;nbsp;&#125;


	But that does not seem to work, no video and no error message. Same code works with the QML MediaPlayer as source though. 

	Thanks!]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/27741</guid>
            <pubDate>Mon, 13 May 2013 15:00:53 GMT</pubDate>
        </item>
	
        <item>
            <title>Undecorated Window</title>
            <link>http://qt-project.org/forums/viewthread/27729</link>
            <author>archdove</author>
            <description><![CDATA[Hi 

	Im wondering how i can create an undecorated window. I want do disable the outside borders and status bar.
Any Idea? QtQuick.Window does not seem to have such a feature and i was not able to add   Qt::FramelessWindowHint.

	Im using QQmlComponent becaus it works so far. Im using Window&#123;&#125; in qml because nothing will be shown if i dont.

	import QtQuick 2.0
import QtQuick.Window 2.0
&amp;nbsp;
Window &#123;
&amp;nbsp; width: 360
&amp;nbsp; height: 360
&amp;nbsp; property string src
&amp;nbsp; Image &#123;
&amp;nbsp; &amp;nbsp; source: src
&amp;nbsp; &amp;nbsp; anchors.fill: parent
&amp;nbsp; &#125;
&#125;


	&amp;nbsp; comp = new QQmlComponent&#40;e, QUrl&#40;&amp;quot;qml/MultiRegionTypePlayer/main.qml&amp;quot;&#41;&#41;;
&amp;nbsp; p = qobject_cast&amp;lt;QQuickWindow*&amp;gt;&#40;comp&#45;&amp;gt;create&#40;&#41;&#41;;
&amp;nbsp; p&#45;&amp;gt;setVisible&#40;true&#41;;]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/27729</guid>
            <pubDate>Mon, 13 May 2013 11:58:11 GMT</pubDate>
        </item>
	
        <item>
            <title>[SOLVED] Need help at creating components module</title>
            <link>http://qt-project.org/forums/viewthread/27710</link>
            <author>p.kreker</author>
            <description><![CDATA[Hi, I created a components module using the Qt Creator template for QtQuick 2 and the building runs fine but when i want to use the module i get an error saying that my module isn&#8217;t installed:
file:///C:/Users/Paul/Documents/QtCreator/src/component_test/component_test.qml:2 module &amp;quot;TestUi&amp;quot; is not installed


	The Project:
test_ui.pro
TEMPLATE = lib
TARGET = test_ui
QT += qml quick
CONFIG += qt plugin
&amp;nbsp;
TARGET = $$qtLibraryTarget&#40;$$TARGET&#41;
uri = TestUi
&amp;nbsp;
# Input
SOURCES += \
&amp;nbsp; &amp;nbsp; test_ui_plugin.cpp \
&amp;nbsp; &amp;nbsp; test_button_item.cpp
&amp;nbsp;
HEADERS += \
&amp;nbsp; &amp;nbsp; test_ui_plugin.h \
&amp;nbsp; &amp;nbsp; test_button_item.h
&amp;nbsp;
OTHER_FILES = qmldir
&amp;nbsp;
!equals&#40;_PRO_FILE_PWD_, $$OUT_PWD&#41; &#123;
&amp;nbsp; &amp;nbsp; copy_qmldir.target = $$OUT_PWD/qmldir
&amp;nbsp; &amp;nbsp; copy_qmldir.depends = $$_PRO_FILE_PWD_/qmldir
&amp;nbsp; &amp;nbsp; copy_qmldir.commands = $&#40;COPY_FILE&#41; \&amp;quot;$$replace(copy_qmldir.depends, /, $$QMAKE_DIR_SEP)\&amp;quot; \&amp;quot;$$replace(copy_qmldir.target, /, $$QMAKE_DIR_SEP)\&amp;quot;
 &amp;nbsp; &amp;nbsp;QMAKE_EXTRA_TARGETS += copy_qmldir
 &amp;nbsp; &amp;nbsp;PRE_TARGETDEPS += $$copy_qmldir.target
&#125;
&amp;nbsp;
qmldir.files = qmldir
installPath = $$[QT_INSTALL_IMPORTS]/$$replace(uri, \\., /)
qmldir.path = $$installPath
target.path = $$installPath
INSTALLS += target qmldir


	test_ui_plugin.h
#ifndef TEST_UI_PLUGIN_H
#define TEST_UI_PLUGIN_H
&amp;nbsp;
#include &amp;lt;QQmlExtensionPlugin&amp;gt;
&amp;nbsp;
class TestUiPlugin : public QQmlExtensionPlugin
&#123;
&amp;nbsp; Q_OBJECT
&amp;nbsp; Q_PLUGIN_METADATA&#40;IID &amp;quot;org.qt&#45;project.Qt.QQmlExtensionInterface&amp;quot;&#41;
&amp;nbsp;
public:
&amp;nbsp; void registerTypes&#40;const char *uri&#41;;
&#125;;
&amp;nbsp;
#endif // TEST_UI_PLUGIN_H


	test_ui_plugin.cpp
#include &amp;quot;test_ui_plugin.h&amp;quot;
#include &amp;quot;test_button_item.h&amp;quot;
&amp;nbsp;
#include &amp;lt;qqml.h&amp;gt;
&amp;nbsp;
void TestUiPlugin::registerTypes&#40;const char *uri&#41;
&#123;
&amp;nbsp; // @uri TestUi
&amp;nbsp; qmlRegisterType&amp;lt;TestButtonItem&amp;gt;&#40;uri, 0, 1, &amp;quot;Button&amp;quot;&#41;;
&#125;


	test_button_item.h
#ifndef TESTBUTTONITEM_H
#define TESTBUTTONITEM_H
&amp;nbsp;
#include &amp;lt;QQuickPaintedItem&amp;gt;
&amp;nbsp;
class TestButtonItem : public QQuickPaintedItem
&#123;
&amp;nbsp; Q_OBJECT
&amp;nbsp; Q_DISABLE_COPY&#40;TestButtonItem&#41;
&amp;nbsp; Q_PROPERTY&#40;QColor borderColor READ borderColor WRITE setBorderColor&#41;
&amp;nbsp; Q_PROPERTY&#40;QString text READ text WRITE setText&#41;
&amp;nbsp;
public:
&amp;nbsp; TestButtonItem&#40;QQuickPaintedItem *parent = 0&#41;;
&amp;nbsp; ~TestButtonItem&#40;&#41;;
&amp;nbsp; QColor borderColor&#40;&#41; const;
&amp;nbsp; void paint&#40;QPainter *painter&#41;;
&amp;nbsp; void setBorderColor&#40;const QColor&amp;amp; color&#41;;
&amp;nbsp; void setText&#40;const QString&amp;amp; text&#41;;
&amp;nbsp; QString text&#40;&#41; const;
&amp;nbsp;
private:
&amp;nbsp; QColor m_qcolorBorderColor;
&amp;nbsp; QString m_qstringText;
&#125;;
&amp;nbsp;
QML_DECLARE_TYPE&#40;TestButtonItem&#41;
&amp;nbsp;
#endif // TESTBUTTONITEM_H


	test_button_item.cpp
#include &amp;quot;test_button_item.h&amp;quot;
#include &amp;lt;QPainter&amp;gt;
#include &amp;lt;QPen&amp;gt;
&amp;nbsp;
TestButtonItem::TestButtonItem&#40;QQuickPaintedItem *parent&#41;
&amp;nbsp; &amp;nbsp; : QQuickPaintedItem&#40;parent&#41; &#123;
&amp;nbsp; setBorderColor&#40;QColor&#40;Qt::black&#41;&#41;;
&amp;nbsp; setImplicitHeight&#40;50.0&#41;;
&amp;nbsp; setImplicitWidth&#40;100.0&#41;;
&#125;
&amp;nbsp;
TestButtonItem::~TestButtonItem&#40;&#41; &#123;
&#125;
&amp;nbsp;
QColor TestButtonItem::borderColor&#40;&#41; const &#123;
&amp;nbsp; return m_qcolorBorderColor;
&#125;
&amp;nbsp;
void TestButtonItem::paint&#40;QPainter* painter&#41; &#123;
&amp;nbsp; QPen qpen&#40;borderColor&#40;&#41;, 3&#41;;
&amp;nbsp;
&amp;nbsp; painter&#45;&amp;gt;setPen&#40;qpen&#41;;
&amp;nbsp; painter&#45;&amp;gt;drawRect&#40;0, 0, width&#40;&#41;, height&#40;&#41;&#41;;
&amp;nbsp; painter&#45;&amp;gt;drawText&#40;0, 0, width&#40;&#41;, height&#40;&#41;, Qt::AlignCenter, m_qstringText&#41;;
&#125;
&amp;nbsp;
void TestButtonItem::setBorderColor&#40;const QColor&amp;amp; color&#41; &#123;
&amp;nbsp; m_qcolorBorderColor = color;
&#125;
&amp;nbsp;
void TestButtonItem::setText&#40;const QString&amp;amp; text&#41; &#123;
&amp;nbsp; m_qstringText = text;
&#125;
&amp;nbsp;
QString TestButtonItem::text&#40;&#41; const &#123;
&amp;nbsp; return m_qstringText;
&#125;


	&amp;lt;edit&amp;gt;
qmldir
module TestUi
plugin test_ui

&amp;lt;/edit&amp;gt;

	The Test App
components_test.qmlproject
/* File generated by Qt Creator, version 2.7.0 */
&amp;nbsp;
import QmlProject 1.1
&amp;nbsp;
Project &#123;
&amp;nbsp; mainFile: &amp;quot;components_test.qml&amp;quot;
&amp;nbsp;
&amp;nbsp; /* Include .qml, .js, and image files from current directory and subdirectories */
&amp;nbsp; QmlFiles &#123;
&amp;nbsp; &amp;nbsp; directory: &amp;quot;.&amp;quot;
&amp;nbsp; &#125;
&amp;nbsp; JavaScriptFiles &#123;
&amp;nbsp; &amp;nbsp; directory: &amp;quot;.&amp;quot;
&amp;nbsp; &#125;
&amp;nbsp; ImageFiles &#123;
&amp;nbsp; &amp;nbsp; directory: &amp;quot;.&amp;quot;
&amp;nbsp; &#125;
&amp;nbsp; /* List of plugin directories passed to QML runtime */
&amp;nbsp; // importPaths: [ &amp;quot;../exampleplugin&amp;quot; ]
&#125;


	components_test.qml
import QtQuick 2.0
import TestUi 0.1
&amp;nbsp;
Rectangle &#123;
&amp;nbsp; width: 360
&amp;nbsp; height: 360
&amp;nbsp; Button &#123;
&amp;nbsp; &amp;nbsp; id: button
&amp;nbsp; &amp;nbsp; borderColor: &amp;quot;blue&amp;quot;
&amp;nbsp; &amp;nbsp; text: &amp;quot;Button&amp;quot;
&amp;nbsp; &#125;
&#125;


	&amp;lt;edit&amp;gt;
Some Information:
I use Qt 5.0.2 installed via qt&#45;windows&#45;opensource&#45;5.0.2&#45;msvc2012_64&#45;x64&#45;offline.exe on Win7 64bit with Visual Studio 2012 Express for Windows Desktop.
&amp;lt;/edit&amp;gt;

	I hope you guys can help me with this. Thank you.]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/27710</guid>
            <pubDate>Sun, 12 May 2013 22:58:58 GMT</pubDate>
        </item>
	
        <item>
            <title>Problems using MouseArea inside a delegate of a Repeater &#45; ends up 1 pixel tall!</title>
            <link>http://qt-project.org/forums/viewthread/27697</link>
            <author>drradwan</author>
            <description><![CDATA[Good evening everyone, I&#8217;m new to these forums, however I&#8217;ve been reading and enjoying all of the knowledge shared here to date!

	I&#8217;m having some problems here with using a MouseArea inside of a Text as a delegate of a Repeater.  The problem that I seem to be having is that the MouseArea ends up only being accessible across the top pixel of the Text extending the whole length of the Text.

	Can anyone help me shed some light on this please?  Thanks so much in advance, as I appreciate and respect the advice of the users on here!

	Here&#8217;s my problematic code&#8230;
&amp;nbsp; &amp;nbsp; Rectangle &#123;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; width: 1000
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; height: 42
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; clip: true
&amp;nbsp;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ListModel &#123;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; id: breadCrumb
&amp;nbsp;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ListElement &#123;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; name: &amp;quot;Home&amp;quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#125;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#125;
&amp;nbsp;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FlowView &#123;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; model: breadCrumb
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; anchors.fill: parent
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; width: parent.width
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; height: parent.height
&amp;nbsp;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; delegate: Item &#123;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; width: textBlock.paintedWidth + 10
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; height: textBlock.paintedHeight
&amp;nbsp;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Rectangle &#123;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; id: rect
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; anchors.fill: parent
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //width: parent.width
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //height: parent.height
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; anchors.margins: 8
&amp;nbsp;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Text &#123;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; id: textBlock
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; anchors.fill: parent
&amp;nbsp;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; text: name
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; font.pixelSize: 20
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //anchors.centerIn: parent
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MouseArea &#123;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; anchors.fill: parent
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; hoverEnabled: true
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; onEntered: &#123; console.log&#40;&amp;quot;entered&amp;quot;&#41; &#125;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#125;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#125;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#125;
&amp;nbsp;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#125;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#125;
&amp;nbsp; &amp;nbsp; &#125;


	And here is my FlowView.qml
import QtQuick 1.1
&amp;nbsp;
Flickable &#123;
&amp;nbsp; &amp;nbsp; id: flowView
&amp;nbsp; &amp;nbsp; anchors.fill: parent
&amp;nbsp; &amp;nbsp; boundsBehavior: Flickable.DragOverBounds
&amp;nbsp; &amp;nbsp; flickableDirection: Flickable.HorizontalFlick
&amp;nbsp;
&amp;nbsp; &amp;nbsp; contentWidth: parent.width
&amp;nbsp; &amp;nbsp; contentHeight: flow.childrenRect.height
&amp;nbsp;
&amp;nbsp; &amp;nbsp; property alias count: flowRepeater.count
&amp;nbsp; &amp;nbsp; property int currentIndex: &#45;1
&amp;nbsp; &amp;nbsp; property variant currentItem
&amp;nbsp; &amp;nbsp; property alias delegate: flowRepeater.delegate
&amp;nbsp; &amp;nbsp; property alias flow: flow.flow
&amp;nbsp; &amp;nbsp; property alias model: flowRepeater.model
&amp;nbsp;
&amp;nbsp; &amp;nbsp; onCurrentIndexChanged: &amp;nbsp;&#123;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; currentItem = model.get&#40;currentIndex&#41;
&amp;nbsp; &amp;nbsp; &#125;
&amp;nbsp;
&amp;nbsp; &amp;nbsp; Flow &#123;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; id: flow
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //width: parent.width
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //height: parent.height
&amp;nbsp;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Repeater &#123;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; id: flowRepeater
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; model: flowView.model
&amp;nbsp;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; onCountChanged: &amp;nbsp;&#123;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if &#40;flowView.currentIndex === &#45;1 &amp;amp;&amp;amp; count &amp;gt; 0&#41; &#123;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; flowView.currentIndex = 0
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#125;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if &#40;flowView.currentIndex &amp;gt;= count&#41; &#123;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; flowView.currentIndex = count &#45; 1
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#125;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#125;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#125;
&amp;nbsp;
&amp;nbsp; &amp;nbsp; &#125;
&amp;nbsp;
&#125;]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/27697</guid>
            <pubDate>Sun, 12 May 2013 04:20:04 GMT</pubDate>
        </item>
	
        <item>
            <title>A good way to allow editing of Model items?</title>
            <link>http://qt-project.org/forums/viewthread/27687</link>
            <author>Dynamite101</author>
            <description><![CDATA[hey i&#8217;ve been learning normal Qt for over 7 months and i only just started learning some Qml after hearing so much about it. I&#8217;ve been trying to get a better understanding of data models and views in both normal Qt and Qml. Following the standard Qml approach of using a Rectangle and Text element in the delegate, what is a good way to let a user edit the value of text in the delegate&#8217;s Text element?

	I was wondering is this where the normal Qt will come in? as in don&#8217;t use qml&#8217;s ListModel, but instead a model from Qt ? but then i realized the editing still needs to take place on the qml screen, so im still wondering how i can let a user edit the model&#8217;s data item/role&#8217;s value?

	Also ive heard its better to subclass a Qt model if the application is too complex for Qml. Could anyone please give me an idea of such a situation?]]></description>
            <guid isPermaLink="false">http://qt-project.org/forums/viewthread/27687</guid>
            <pubDate>Sat, 11 May 2013 17:09:52 GMT</pubDate>
        </item>
	

	</channel>
</rss>