Re: [Qt-qml] Change property of dynamically created component

2010-11-10 Thread shiping.ji
Hi, This explains the case, now we fully understood what was wrong in our approach. Thanks a lot for Michael and Warwick's help. BR, Shiping -Original Message- From: Brasser Michael (Nokia-MS-Qt/Brisbane) Sent: 11 November, 2010 03:43 To: Ji Shiping (Nokia-MS/Espoo) Cc: qt-qml@trollte

Re: [Qt-qml] MapPolyline

2010-11-10 Thread david.laing
Hi, I just tried out both of the following and didn't have any problems: --- import Qt 4.7 import QtMobility.location 1.1 Item { width: 500 height: 500 focus : true Map { id: map plugin : Plugin { name : "noki

Re: [Qt-qml] MapPolyline

2010-11-10 Thread martin.jones
Hi Sampo, This sounds like a bug to me, so I suggest logging a bug on http://bugreports.qt.nokia.com You may get more help on the qt-mobility-feedb...@trolltech.com mailing list. Martin. > -Original Message- > From: qt-qml-boun...@trolltech.com [mailto:qt-qml-boun...@trolltech.com] On

Re: [Qt-qml] setData for insert code in qml

2010-11-10 Thread michael.brasser
Hi, On 09/11/2010, at 11:27 PM, ext marvin42 wrote: > I want insert code in qml. > > i have file main.qml, i try append this code import Qt 4.7\n Rectangle { > width : 1000; height:1000; color: \"blue\" } > > ex: > QApplication app(argc, argv); > > QDeclarativeView view; > >

Re: [Qt-qml] How to see screen (or preferably window) dimensions?

2010-11-10 Thread michael.brasser
On 10/11/2010, at 8:55 AM, ext Bart Kelsey wrote: > Greets! > > Is there some way from within QML that I can get the dimensions of the > QDecarativeView that my QML objects are in, short of writing a special C++ > function? This isn't directly accessible, but setting the resize mode of the QD

Re: [Qt-qml] Change property of dynamically created component

2010-11-10 Thread michael.brasser
Hi Shiping, id's are scoped to the component in which they are defined (and are accessible to subcomponents, but not to containing components) -- perhaps this is the problem you are running into? For example: // YellowRect.qml Rectangle { id: yellowRect width: 100 height: 100 co

Re: [Qt-qml] Managing declarative/imperative "order of operations"

2010-11-10 Thread michael.brasser
Hi Charley, On 07/11/2010, at 5:45 AM, ext Charley Bay wrote: > Using QML/Javascript, quite a few options exist to *either* be declarative > (e.g., "myAnimation.paused = true") or imperative (e.g., > "myAnimation.pause();") > > IMHO, when possible, one should be declarative (long discussion fo

Re: [Qt-qml] Find by id.

2010-11-10 Thread michael.brasser
Hi, On 05/11/2010, at 9:21 PM, ext René Hansen wrote: > On Thu, 2010-11-04 at 23:44 +0100, Brasser Michael > (Nokia-MS-Qt/Brisbane) wrote: >> On 04/11/2010, at 10:26 PM, ext René Hansen wrote: >>> I'd like to be able to find child objects in a QML structure and to do >>> that, I've exposed a new Q

Re: [Qt-qml] Object passing in threaded applications.

2010-11-10 Thread bea.lam
Hi René, On 10/11/2010, at 10:49 PM, ext René Hansen wrote: > > And my question is then, is there any other QML objects besides > ListModel I can use? Where can I find the documentation? Why isn't there > support of custom objects? > No, the WorkerScript doesn't support passing of custom object

Re: [Qt-qml] Transforming a model (like 'list comprehension')

2010-11-10 Thread Ville M. Vainio
On Wed, Nov 10, 2010 at 10:41 PM, Ville M. Vainio wrote: > Suppose I have model with items like this: > > ListItem { x : 1; y: 2 } > > And I need a model with items like this: > > ListItem { z : 1 + 2 } To elaborate, it could be handled by something like this (if the construct were available):

Re: [Qt-qml] Transforming a model (like 'list comprehension')

2010-11-10 Thread Ville M. Vainio
On Wed, Nov 10, 2010 at 10:41 PM, Ville M. Vainio wrote: > Suppose I have model with items like this: > > ListItem { x : 1; y: 2 } ... here, I of course mean "ListElement" instead of ListItem. -- Ville M. Vainio @@ Forum Nokia ___ Qt-qml mailing list

[Qt-qml] Transforming a model (like 'list comprehension')

2010-11-10 Thread Ville M. Vainio
Suppose I have model with items like this: ListItem { x : 1; y: 2 } And I need a model with items like this: ListItem { z : 1 + 2 } What should I do? My gut tells me that it's not possible in a clean way, but I hope to be proven wrong :). Actually, my *real* need is more mundane - I want to re

Re: [Qt-qml] Change property of dynamically created component

2010-11-10 Thread warwick.allison
On 10/11/2010, at 7:39 PM, "Ji Shiping (Nokia-MS/Espoo)" wrote: > Hi, > > That solves the problem. One more related question, does it mean that > dynamically created QML objects (incl. e.g. the one created using > QDeclarativeComponent::create()) will not have their id registered? > > We

[Qt-qml] MapPolyline

2010-11-10 Thread Sampo Juhani Savola
Hello I would like to draw a route on the Map with QML by using MapPolyline in Qt Mobility 1.1. Should this MapPolyline work with this release? I can use the Map object fine but when i try to add MapPolyline the code stops working and i get error: "MapPolyline is not a type" Thanx Sampo __

[Qt-qml] Object passing in threaded applications.

2010-11-10 Thread René Hansen
I've run my head against the wall with this. Consider the following example: main.qml: import Qt 4.7 Rectangle { ListModel { id:lm } Rectangle { id:rect } QtObject { id:qtob } Custom {

Re: [Qt-qml] Change property of dynamically created component

2010-11-10 Thread shiping.ji
Hi, That solves the problem. One more related question, does it mean that dynamically created QML objects (incl. e.g. the one created using QDeclarativeComponent::create()) will not have their id registered? We've noticed the issue that once we load and attach such objects programmatically, fu

Re: [Qt-qml] FocusScope and Positioning

2010-11-10 Thread jerome.pasion
Hello, Thanks for your reply. I will add this information as usage guideline in the focus document. Currently, there isn't any content regarding how to use the FocusScope element. Thanks, Jerome P. From: Brasser Michael (Nokia-MS-Qt/Brisbane) Sent: Wednes