Bug 325233 - Support model.index and friends
Summary: Support model.index and friends
Status: RESOLVED UNMAINTAINED
Alias: None
Product: QmlWeb
Classification: Unmaintained
Component: QML-Parser (other bugs)
Version First Reported In: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Anton Kreuzkamp
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-24 09:56 UTC by Thomas McGuire
Modified: 2025-06-10 16:57 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.