Accessing properties outside of a delegate without producing qmllint warnings seems to be harder than it should be. The 3th example below which does not produce any warnings is not intuitive. I had to look to the bug reports to find it. I would suspect the 2nd example to be accepted by qmllint since this is the documented way of accessing properties outside of a delegate.
This is a common pattern in our codebase and since there are already two related bugs, I assume many users will encounter this issue. If this isn't easily fixed, documenting this somewhere would be useful.
The second example uses ListView.view to access the property as described in the documentation (https://doc.qt.io/qt-6/qtquick-modelviewsdata-modelview.html#accessing-views-and-models-from-delegates). However, this produces another qmllint warning.
The last example uses a workaround taken from the comments of
QTBUG-101867. While this does not produce any qmllint warnings, it requires an explicit conversion to var. It would be nice if qmllint could handle this implicitly.