Top "Qstandarditemmodel" questions

The QStandardItemModel class provides a generic model for storing custom data.

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
Add items to columns in QStandardItemModel

I am currently adding rows to my QTableView as such QStandardItem* itm; QStandardItemModel* model = new QStandardItemModel(this); model->setColumnCount(2); …

c++ qt qtableview qstandarditemmodel
How to Move Up a Selected Row in Qt

I have a QTableView with 3 rows and 2 columns. (Here I am using a QStandardItemModel). I want to move up/move …

qt qt5 qtableview qt4.8 qstandarditemmodel
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 the pyqt qtreeview item child using double click event?

I'm using PyQt4 and python 2.7.9. I have a QTreeView that contains data from Oracle database. the code is this: model = …

python-2.7 pyqt4 qtreeview qstandarditemmodel qstandarditem
PyQt5: How to generate a QTreeView from a list of dictionary items?

I have a dataset like this: [{'level': 0, 'dbID': 77, 'parent_ID': 6, 'short_name': '0:0:0:<new> to 6', 'long_name': …

python dictionary pyqt5 qtreeview qstandarditemmodel
QStandardItemModel -- delete a row

I am using QStandardItemModel inside QTableView. Here I have two button & QTableView inside my mainwindow. Rows will vary inside …

qt qstandarditemmodel
Sort QStandardItemModel in c++ Qt

I have a model of type QStandardItemModel which looks like this: QHash<int, QByteArray> roleNames; roleNames[Car2goVehicle::…

qt sorting model qstandarditemmodel