Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.6.0, 5.7.0 Beta
-
None
-
All the platforms.
-
1969991c4a4bd39ee224b0fa3c8cffa51f061757
Description
After the upgrade to qt 5.6 a js method bound to a qml object property is not re-evaluated anymore.
This is the method code:
function checkModifiedSettings() { if( typeof settingsList.model == "undefined" || settingsList.model == null ) { console.log("WARNING : checkModifiedSettings settingsList.model is not defined!"); return false; } for(var i=0;i<settingsList.model.count;i++) if( settingsList.model.get(i).modified ) return true; return false; }
"settingsList" is a ListView and the associated model is a "ListModel".
This method is then bound to a property like this:
enabled: checkModifiedSettings()
When the "modified" property of some items of the model changes then the old behavior was the method re-evaluation. Since the update to qt 5.6 this doesn't work anymore.
Attachments
Issue Links
- relates to
-
QTBUG-59256 Bugfix for QTBUG-52356 possibly not complete
- Closed