Top "Qmodelindex" questions

QModelIndex is a central class in the Qt model/view framework.

Creating a QModelIndex

I have spent the last week struggling to create a QModelIndex given a row and a column. Alternatively, I would …

qt qmodelindex
QTableView: how do I correctly create a QModelIndex?

I'm trying to enter edit mode on a specific cell like this: void MainWindow::on_addButton_released() { tm->addRow(); …

qt qtableview qmodelindex
How to associate QModelIndex with a new row?

I've cooked up a QAbstractListModel whose model indexes contain a pointer I absolutely needed in order to process data. I …

qt qmodelindex qabstractlistmodel
How to iterate through a QStandardItemModel completely?

I have a QStandardItemModel, which I display in q QTreeView. Works fine. To highlight relevant rows I want to highlight …

c++ qt5 qstandarditemmodel qmodelindex qstandarditem
Converting QModelIndex to QString

Is there a way to convert QModelIndex to QString? The main goal behind this is that I want to work …

c++ qt qstring qmodelindex
Read and write to a file from a QTableView

How can I read and write to a text file date enter to a QTableView? This is what I have …

qt qtableview qstandarditemmodel qmodelindex
How to get list of visible QModelIndex in QAbstractItemView

Is there any way to get a list of currently visible items in QAbstractItemView? And, if it possible, to receive …

qt model-view-controller qmodelindex qabstractitemview