[Development] Behavior change in QtQuick 2.0 Qml ListModel (for javascript date object)

2012-06-25 Thread Nils Jeisecke
Hi, the following code works just fine with Qt Quick 1.1. However porting this to 2.0 gives the following output: date is [object Object] file:///...q2listmodel.qml:9: TypeError: Object # has no method 'getMonth' Does the new ListModel/ListElement implementation apply some automatic conversion f

Re: [Development] Behavior change in QtQuick 2.0 Qml ListModel (for javascript date object)

2012-06-25 Thread joona.t.petrell
cke [njeise...@saltation.de] Sent: Monday, June 25, 2012 4:15 PM To: development@qt-project.org Subject: [Development] Behavior change in QtQuick 2.0 Qml ListModel (for javascript date object) Hi, the following code works just fine with Qt Quick 1.1. However porting this to 2.0 gives

Re: [Development] Behavior change in QtQuick 2.0 Qml ListModel (for javascript date object)

2012-06-25 Thread glenn.watson
+glenn.watson=nokia@qt-project.org] On Behalf Of Petrell Joona.T (Nokia-MP/Tampere) Sent: Tuesday, June 26, 2012 7:46 AM To: njeise...@saltation.de; development@qt-project.org Subject: Re: [Development] Behavior change in QtQuick 2.0 Qml ListModel (for javascript date object) Hi Nils, > Bug or feat

Re: [Development] Behavior change in QtQuick 2.0 Qml ListModel (for javascript date object)

2012-06-27 Thread Nils Jeisecke
Hi, > The relevant bug is https://bugreports.qt-project.org/browse/QTBUG-24456. > For now, using dynamicRoles as Joona suggested should work around the problem. thanks for pointing me to bug report and for providing the workaround! Nils ___ Development