Function ListWidget.itemByPosition

returns item index by 0-based offset from top/left of list content

int itemByPosition(
  int pos
);