I'm programmatically changing the selected item with setCurrentIndex() of my Tree- and TableViews. If the current item has changed, a multitude of si ...
I'm programmatically changing the selected item with setCurrentIndex() of my Tree- and TableViews. If the current item has changed, a multitude of si ...
I'm trying to learn how to implement Drag and Drop to model/view settings in Qt. As an exercise, I attempted to do that to the Editable Tree Model exa ...
Working with the Qt5 framework (via pyQt5 with Python), I need to create a QTreeView widget with Parameter - Value columns, where the Value items for ...
Qt versions used: 4.7.1 and 4.8 I store hierarchical data as nodes in a model that is derived from QAbstractItemModel. I have a QTreeView in my appli ...
How do you use QStyledItemDelegate / QItemDelegate to permanently display a complex widget, i.e. to handle the Qt.DisplayRole, not just Qt.EditRole? ...
I have a custom model (extends QAbstractTableModel) where row data is added pragmatically. For performance reasons, I am using the fetch functionality ...
I noticed in the source code of QAbstractItemView that the method void startDrag(Qt::DropActions supportedActions) calls some clearOrRemove() private ...
We usually set view's model in Qt like this: view->setModel(model); But is there any way to remove a model from view? I mean literally leave a vie ...
I would like to have QAbstractItemView that will allow multi-selection of items only with ctrl button toggle. I can't use QAbstractItemView::ExtandedS ...
I am trying to select items of abstract item view in Qt given their string values. I have already written function that finds any QModelIndex based on ...
In my project, I have a QTreeView displaying items from a QStandardItemModel. Each item has data stored in several UserRoles. When the user double ...
How can I copy and paste multiple items/values of a QTableView to a text/ excel file? My Code: This line self.tableView.setSelectionMode(QAbstract ...
We can select multiple items(partial rows and partial columns) from QTableView using self.tableView.setSelectionMode(QAbstractItemView.ExtendedSelecti ...
I want to fire QAbstractItemView::doubleClicked slot programaticaly for an item that has specific text. I want to do this using QAbstractItemView clas ...
I have subclasses of QTreeView and QAbstractItemModel and currently I'm using drag-drop to move items from one parent index to another. I want to also ...
I want to set background color for selected row from my listview model.After select another row,the color of previous row is make transparent.Thanks! ...
I Have QTableView object with horizontal headerView, (vertical I have hidden). I set setShowGrid(false) to remove grid from qtableView, but how can I ...
I have a problem with the extendedSelection of my QTableView. The Problem is that i have some whitespace around my columns and rows and when i click t ...
I have created a custom item delegate which lets users edit a list of file paths: I have achieved this through a custom class DirEdit. Now the sele ...
I work with Qt/C++, and I have a QListView to display icons on screen. I set the QListView::iconMode to display it as icon view. But I cannot see that ...