Re: [Interest] Define map of static items in QML

2016-06-03 Thread Elvis Stansvik
2016-06-03 17:55 GMT+02:00 Elvis Stansvik : > Hi Alejandro, > > I realized I never got back to this and answered you, sorry about that. > > 2016-04-02 17:02 GMT+02:00 Alejandro Exojo : >> El Wednesday 30 March 2016, Elvis Stansvik escribió: >>> > not at all if that suit you for your key, it's all g

Re: [Interest] Define map of static items in QML

2016-06-03 Thread Elvis Stansvik
Hi Alejandro, I realized I never got back to this and answered you, sorry about that. 2016-04-02 17:02 GMT+02:00 Alejandro Exojo : > El Wednesday 30 March 2016, Elvis Stansvik escribió: >> > not at all if that suit you for your key, it's all good. objectname is >> > just a string property after a

Re: [Interest] Define map of static items in QML

2016-04-02 Thread Alejandro Exojo
El Wednesday 30 March 2016, Elvis Stansvik escribió: > > not at all if that suit you for your key, it's all good. objectname is > > just a string property after all. id would be a bad idea, since it > > depend on the context instance. > > Alright, then I think I'll do that, thanks. This was an in

Re: [Interest] Define map of static items in QML

2016-03-30 Thread Elvis Stansvik
Den 30 mar 2016 5:49 em skrev "Jérôme Godbout" : > > not at all if that suit you for your key, it's all good. objectname is just a string property after all. id would be a bad idea, since it depend on the context instance. Alright, then I think I'll do that, thanks. Elvis > > On Wed, Mar 30, 201

Re: [Interest] Define map of static items in QML

2016-03-30 Thread Jérôme Godbout
not at all if that suit you for your key, it's all good. objectname is just a string property after all. *id* would be a bad idea, since it depend on the context instance. On Wed, Mar 30, 2016 at 11:24 AM, Elvis Stansvik wrote: > 2016-03-30 17:22 GMT+02:00 Elvis Stansvik : > >> 2016-03-30 16:55

Re: [Interest] Define map of static items in QML

2016-03-30 Thread Elvis Stansvik
2016-03-30 17:22 GMT+02:00 Elvis Stansvik : > 2016-03-30 16:55 GMT+02:00 Jérôme Godbout : > >> You may want to have them declared as list of object with the key as a >> property of each entry, and build the map based on the list content. >> >> ex: >> >> *// May have to change the list type here* >

Re: [Interest] Define map of static items in QML

2016-03-30 Thread Elvis Stansvik
2016-03-30 16:55 GMT+02:00 Jérôme Godbout : > You may want to have them declared as list of object with the key as a > property of each entry, and build the map based on the list content. > > ex: > > *// May have to change the list type here* > *property list myScreens:* > *[* > * WelcomeScree

Re: [Interest] Define map of static items in QML

2016-03-30 Thread Jérôme Godbout
You may want to have them declared as list of object with the key as a property of each entry, and build the map based on the list content. ex: *// May have to change the list type here* *property list myScreens:* *[* * WelcomeScreen { property string keyName: 'welcome' }* * , OtherScreen {

Re: [Interest] Define map of static items in QML

2016-03-30 Thread Elvis Stansvik
2016-03-30 11:08 GMT+02:00 Gianluca : > > Il giorno 30/mar/2016, alle ore 09:46, Elvis Stansvik ha > scritto: > >> Hi Gianluca, >> >> 2016-03-30 10:16 GMT+02:00 Gianluca : >>> >>> Il giorno 30/mar/2016, alle ore 07:43, Elvis Stansvik >>> ha scritto: >>> >>> Den 30 mar 2016 8:36 fm skrev "Elvis S

Re: [Interest] Define map of static items in QML

2016-03-30 Thread Gianluca
Il giorno 30/mar/2016, alle ore 09:46, Elvis Stansvik ha scritto: > Hi Gianluca, > > 2016-03-30 10:16 GMT+02:00 Gianluca : >> >> Il giorno 30/mar/2016, alle ore 07:43, Elvis Stansvik >> ha scritto: >> >> Den 30 mar 2016 8:36 fm skrev "Elvis Stansvik" : >>> >>> Hi all, >>> >>> I can unders

Re: [Interest] Define map of static items in QML

2016-03-30 Thread Elvis Stansvik
Hi Gianluca, 2016-03-30 10:16 GMT+02:00 Gianluca : > > Il giorno 30/mar/2016, alle ore 07:43, Elvis Stansvik > ha scritto: > > Den 30 mar 2016 8:36 fm skrev "Elvis Stansvik" : >> >> Hi all, >> >> I can understand why I can do >> >> property Item foo: Foo {} >> property Item bar: Bar {} >> propert

Re: [Interest] Define map of static items in QML

2016-03-30 Thread Elvis Stansvik
2016-03-30 10:15 GMT+02:00 Martin Leutelt : > From: Elvis Stansvik > To: "interest@qt-project.org Interest" > Sent: 3/30/2016 8:43 AM > Subject: Re: [Interest] Define map of static items in QML > > Den 30 mar 2016 8:36 fm skrev "Elvis Stansvik" : >> &g

Re: [Interest] Define map of static items in QML

2016-03-30 Thread Gianluca
Il giorno 30/mar/2016, alle ore 07:43, Elvis Stansvik ha scritto: > Den 30 mar 2016 8:36 fm skrev "Elvis Stansvik" : > > > > Hi all, > > > > I can understand why I can do > > > > property Item foo: Foo {} > > property Item bar: Bar {} > > property variant items: { > > "foo": foo, > > "b

Re: [Interest] Define map of static items in QML

2016-03-30 Thread Martin Leutelt
From: Elvis Stansvik To: "interest@qt-project.org Interest" Sent: 3/30/2016 8:43 AM Subject: Re: [Interest] Define map of static items in QML Den 30 mar 2016 8:36 fm skrev "Elvis Stansvik" : > > Hi all, > > I can understand why I can

Re: [Interest] Define map of static items in QML

2016-03-29 Thread Elvis Stansvik
Den 30 mar 2016 8:36 fm skrev "Elvis Stansvik" : > > Hi all, > > I can understand why I can do > > property Item foo: Foo {} > property Item bar: Bar {} > property variant items: { > "foo": foo, > "bar": bar > } > > but not > > property variant items: { > "foo": Foo{}, > "bar": Bar{

[Interest] Define map of static items in QML

2016-03-29 Thread Elvis Stansvik
Hi all, I can understand why I can do property Item foo: Foo {} property Item bar: Bar {} property variant items: { "foo": foo, "bar": bar } but not property variant items: { "foo": Foo{}, "bar": Bar{} } The first opening { in the second example probably puts me in JS territory