qt/mlbasemodel: Add 'getData' function for QModelIndex