1 2 3 4 5 6
import QtQml QtObject { property ItemSelectionModel itemSelectionModel; function row() { return itemSelectionModel.currentIndex.row; } }