I want the key to be able to access objects.

I declare properties like this:

property var timeTable: { "Monday": list<Rectangle>(23) }; 

Then I appeal:

 timeTable['Monday'] = [ idRect ] console.log(timeTable['Monday'].objectName) 

Writes an error:

qrc: /admin/admin/AdminCost.qml: 261: TypeError: Type error qrc: /admin/admin/AdminCost.qml: 27: ReferenceError: list is not defined

How to write a data structure declaration?

    0