Bug 325233

Summary: Support model.index and friends
Product: [Unmaintained] QmlWeb Reporter: Thomas McGuire <mcguire>
Component: QML-ParserAssignee: Anton Kreuzkamp <akreuzkamp>
Status: RESOLVED UNMAINTAINED    
Severity: wishlist    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Thomas McGuire 2013-09-24 09:56:25 UTC
"model.index" is an alias for "index" that Repeaters and ListViews attach to their delegate. Right now QmlWeb only knows "index".

This also applies to ListModels:

ListModel {
    id: fruitModel

    ListElement {
        name: "Apple"
        cost: 2.45
    }
}

Here, both "model.name" and "name" is available to the delegates.

The same is true for "model.modelData" vs "modelData" when using e.g. JS arrays as model.

Reproducible: Always
Comment 1 Christoph Cullmann 2025-06-10 16:57:32 UTC
This project is unfortunately no longer maintained.

If a new maintainer wants to step up and take care, the project is archived here:

https://invent.kde.org/unmaintained/qmlweb

You can just clone it in your private namespace on invent.kde.org and if you have started to work on it and fixed/implemented something get it reviewed and the project unarchived.

Sorry for the inconveniences.