- 
    Bug 
- 
    Resolution: Duplicate
- 
     Not Evaluated Not Evaluated
- 
    None
- 
    4.7.1
- 
    None
I can not change the contents of an array using splice or delete.
See following example or attached file:
import QtQuick 1.0
Item {
    width: 100; height: 100
property variant array: ["0", "1", "2"]
Component.onCompleted:
{ //var array = ["0", "1", "2"] // Outputs ["0","1","2"] console.log(JSON.stringify(array)) var ret = array.splice(1, 1); // Should be ["0","2"] ["1"] but is ["0","1","2"] ["1"] console.log(JSON.stringify(array), JSON.stringify(ret)) delete array[1]; // Should be ["0",null] but is ["0","1","2"] console.log(JSON.stringify(array)) }}
- is replaced by
- 
                    QTBUG-14986 Full array support for QML list properties (and variant properties that contain lists) -         
- Closed
 
-