Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
40 views

I have a QListView that is configured like this: self.added_items_model = ReorderableModel(self.ui.lstViewAddedItems) lstViewAddedItems = self.ui.lstViewAddedItems lstViewAddedItems.setModel(self....
PMC's user avatar
  • 11
0 votes
1 answer
126 views

I create a simple QMainWindow app as follows: The header file: //mainwindow.h #ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QAbstractItemModel> #include <QTreeView> #include <...
William's user avatar
  • 978
0 votes
1 answer
106 views

I have a QTableView with some data (numbers), but each cell contains an unwanted rounded square (maybe a non-functional checkbox). They look bad, occupy space, and can obscure my data. Why do they ...
anatolyg's user avatar
  • 28.5k
1 vote
1 answer
188 views

When I do a pdf search using the QPdfsearchmodel class my model only seems to include the word I searched for and context before/context after: However, in the documentation there is also a listing ...
ScottyCov's user avatar
2 votes
1 answer
111 views

I'm implementing a QAbstractListModel-derived class (though this question can apply to QAbstractItemModel as well) that will be a QListView's model. The list view is intended to be a log with a ...
Bri Bri's user avatar
  • 1,992
0 votes
1 answer
81 views

my UI crashes without returning any error message when I try to delete the last child of an Item in my QTreeView. I saw this post that gave a solution but it dosn't work for me, even if I add those ...
Thomas.C's user avatar
-1 votes
1 answer
75 views

I have a treeview in which I have applied sorting/filtering using QSortFilterProxyModel. When I perform some action on tree item(ex. RMB action), I refresh my data model(QAbstractItemModel). I am ...
Antriksh kakkar's user avatar
2 votes
0 answers
180 views

I'm trying to display a user defined tree Family_tree through a TreeModel class derived from QAbstractItemModel containing a Family_tree ft_ member and the overrides for the index, parent, data etc ...
Nancy Kalaj's user avatar
0 votes
1 answer
1k views

I have a ChartView in QML I'm trying to update from a data model in C++, however, I'm running into certain issues where I can't seem to figure out a way to update the LineSeries properly. My Sample ...
MaskedAfrican's user avatar
0 votes
0 answers
436 views

I have a TreeView which is displaying items from an AbstractItemModel.. Now I wanted to add extra Filter functionality to my application, but somehow, the data is not visible in the TreeView (after ...
lebhero's user avatar
  • 1,451
0 votes
1 answer
158 views

I have an application which displays JSON-file to the QTreeView. For this I created my own QJsonTreeModel(QAbstractItemModel) class for QTreeView model In my MainWindow.py I implemented it like this: ...
Leonid's user avatar
  • 44
0 votes
1 answer
85 views

I have a custom QAbstractItemModel class QJsonTreeModel(QAbstractItemModel): With this removeRows() method def removeRows(self, position, rows, parent): parentItem = self.getItem(parent) ...
Leonid's user avatar
  • 44
1 vote
1 answer
479 views

I have a subclass of QAbstractListModel that is the model for a QML ListView (using PySide6). Each row of the list has a checkbox in it, and when the user checks/unchecks a box, it updates a boolean ...
maldata's user avatar
  • 447
1 vote
1 answer
559 views

I have three models, a QAbstractItemModel "sourceModel", QSortFilterProxyModel "proxyModel" for filtering, and a QIdentityProxyModel "dataModel" for modifying columns and ...
strunt's user avatar
  • 13
0 votes
0 answers
419 views

My C++ QTWidget application (both Qt 5.15.2 & also Qt 6.2.0(much worse)) are locking up during a large (~10,000 row) table (QTableView) update from a worker thread. The rows are very simple and ...
johnco3's user avatar
  • 2,661
0 votes
0 answers
261 views

I want to use QAbstractItemModel as many times before which will hold a tree structure from an external model. This model can send notifications before deleting a row and after finishing deleting a ...
Gustavo's user avatar
  • 1,019
2 votes
0 answers
533 views

I created a custom view to arrange photos in a seamless grid, like Google Photos does (see below). My view is based on QAbstractItemView (Qt Widgets based). I would like to port this to QtQuick, in ...
jdm's user avatar
  • 10.3k
1 vote
1 answer
451 views

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 example available at the Qt web site: To extend it ...
user118967's user avatar
  • 5,882
1 vote
0 answers
868 views

I'm trying to implement tree-like structure using nested dicts to store my data and display it using QTreeView. The crucial part for me is to track changes made to my data in either nested dict ...
asymmetriq's user avatar
1 vote
2 answers
1k views

We are implementing an QAbstractItemModel structure as shown in diagram below and would like that; node A to contains 3 data columns node B to contains 8 data columns node C to contains 5 data ...
LarsA's user avatar
  • 645
0 votes
0 answers
413 views

I'm building an open source PySide6 app based on the custom file browser in QTreeView. I've already subclassed QFileSystemModel to display a custom column with some extra data. Now my goal is to ...
Code Your Dream's user avatar
1 vote
1 answer
3k views

I have created a model class of type QAbstractTableModel to which I have added a number of methods as shown here: class resultsModel(QAbstractTableModel): def __init__(self, parent, headerData, ...
Ben's user avatar
  • 795
0 votes
1 answer
328 views

Class QAbstractItemModel have a method QAbstractItemModel::createIndex() that creates QModelIndex. When this object created for each QComboBox item for example? In documentation we can find: Note: ...
Vasilij Altunin's user avatar
0 votes
1 answer
499 views

I need to make a table, where each item is parent, having two children (two parameters, that are mapped in lineEdit 'param 1' and 'param 2). Parent value in the table should be a multiplication result ...
Nasty_gri's user avatar
  • 103
0 votes
1 answer
1k views

Im trying to build a little list of entries within a QTreeView, and based on the example posted here, I got it to delete any child items via the right click context menu i added. but when i delete it ...
user3696118's user avatar

1
2 3 4 5
8