Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.3.2
Description
When trying to use qmllint on the following small example, it will report an error that it cannot find the QModelListIndex type when accessing tge selectedIndexes property:
import QtQml.Models 6.3 import QtQuick 6.3 Item { TableView { id: tableView } Component.onCompleted: { var selectedCount = tableView.selectionModel.selectedIndexes.length } }
The error is:
Warning: smallexample.qml:10:54: Type "QModelIndexList" of property "selectedIndexes" not found. This is likely due to a missing dependency entry or a type not being exposed declaratively. var selectedCount = tableView.selectionModel.selectedIndexes.length