Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
49 views

I have tested QTableview in pyside6 using the code below. When QTableview gets focus and we minimize the window when we restore the window suddenly the data() procedure can be called multiple times ...
Ongky's user avatar
  • 49
0 votes
0 answers
75 views

How can I map the X- and Y-values from the QAbstractTableModel to QML Mapper in QtGraphs? There must be some commands I have to fill in these QML code lines: GraphsView { antialiasing: true ...
user24126140's user avatar
0 votes
0 answers
69 views

I have coded up this custom subclass for my project based on the multiple refrences online however when I run my project I get an empty window. class TableModel(QAbstractTableModel): def __init__(...
mcast's user avatar
  • 1
1 vote
2 answers
98 views

I'm building a Qt table in Python to display a large pandas DataFrame. The table uses a custom PandasTableModel (subclassing QAbstractTableModel) to connect to the DataFrame, and I want to highlight ...
curioso's user avatar
  • 295
1 vote
1 answer
94 views

I have a pandas dataframe (df) that is displayed in QTableView using TableModel. I also have QTextEditor, that should do some math operations with the df dataframe used in TableModel and should ...
user16613865's user avatar
2 votes
1 answer
256 views

In Qt's QAbstractTableModel, if I set the row count to 71,582,788 the app performs well and scrolling in any direction works as desired. CPU usage is minimal, and memory usage is as expected. If I add ...
John Norton's user avatar
0 votes
0 answers
50 views

I have a ChartView that has a BarSeries. I use VBarModelMapper to get the model. I have managed to get the values I want. But what I have not been able to do is to display "names" for the ...
aasdag's user avatar
  • 21
0 votes
0 answers
35 views

I have a class GenericTableModel(QAbstractTableModel): in which I am trying to replace Boolean <class 'numpy.bool_'> with icons. I have had it working using the following: if role == Qt....
Byte Insight's user avatar
  • 1,184
0 votes
0 answers
127 views

It is possible to use GridLayout to show list models content in QML. I need a layout that can show content of table models that return data for row & column (QAbstractTableModel - derived classes),...
Vladimir Bershov's user avatar
0 votes
0 answers
91 views

I use this code and it works fine: .... self.query_model = QSqlQueryModel() view = QTableView() view.setModel(self.query_model) ... but I would like to use a QAbstractTableModel ...
Guido's user avatar
  • 1
0 votes
1 answer
412 views

This is the first application I have created with Python QT so apologies if I have missed something really fundamental. The following table is populated via a QAbstractTableModel linked to a Pandas ...
Byte Insight's user avatar
  • 1,184
1 vote
0 answers
176 views

We encountered a problem with the performance of QTableView. Use case: The user wants to be able to open up to 10-30 windows with tabular data (we receive data via the Internet) Each table can have ...
Sergey Borodin's user avatar
0 votes
0 answers
135 views

I am trying to use QTableView with a custom model and QSortFilterProxyModel. If I set the base model: self.setModel(self._model) the table displays correctly. However, if I set the proxy model: self....
Elad Weiss's user avatar
  • 4,082
0 votes
1 answer
447 views

I have a QTableView with custom model, delegate and data class. I want to show different widgets in my table based on data types. this is done in my delegate class. background and checkbox types are ...
mohandes's user avatar
0 votes
1 answer
827 views

I have a QTableView using a QAbstractTableModel and I am trying create some remove row functionality. I have written in the removeRow code like so - def removeRows(self, row, count, parent=QtCore....
ghost654's user avatar
  • 171
0 votes
1 answer
955 views

I have created a custom table model Python class, subclassing the QAbstractTableModel and when I try to set the instance of this class, model, to the model property of the TableView, the whole app ...
Nick V's user avatar
  • 3
2 votes
1 answer
741 views

I have a PySide6 application using an MVC structure. It utilizies two threads. The main thread is the Qt Event loop(GUI). The Model utilizes an asyncio event loop which runs in the other thread. The ...
Rob M.'s user avatar
  • 51
1 vote
1 answer
918 views

im try to create small app in PyQT that show table from database and user will be able to add new rows and fill them. Table's data taken from pd.dataframe with 2 cols and dates-indexes. New inserted ...
papadulo's user avatar
0 votes
0 answers
550 views

I'm using PyQT6 for my application. I'm creating my own QAbstractTableModel where each row has some details and last 3 columns are checkboxes representing received, packed, sent. I successfully ...
Solumath's user avatar
0 votes
2 answers
2k views

I am newbie with Pyqt and need help with setting setData on QAbstractTableModel with QSqlRelationalTableModel table model I have this simple code and I dont now how to implement setData function. I ...
Saša Šoltić's user avatar
0 votes
0 answers
590 views

I'm using a custom Pandas Model(QAbstractTableModel) which is editable. I'm trying to add rows and then the user should be able to edit them and pass the values to the dataframe. Unfortunately, the ...
fotiskt's user avatar
0 votes
0 answers
74 views

I have data that is stored in the a text file and I want to load the lines of the text file into a table model. The class that is derived from QAbstractTableModel uses the following functions: ...
taathy's user avatar
  • 265
0 votes
0 answers
225 views

By this I tried to make a minimal reproducible example of what I now have. Using QSortFilterProxyModel() to find text and a custom SortFilterProxyModel to show all the selected checkboxes. It looks ...
Michael's user avatar
-2 votes
1 answer
222 views

I have this TreeItem: class QJsonTreeItem(object): def __init__(self, data, parent=None): self._parent = parent self._key = "" self._value = "" self._type = None ...
Leonid's user avatar
  • 44
2 votes
1 answer
1k views

I have a self created Qt-Model derieved by QAbstractTableModel. The data behind the model contains multiple QUuid-columns, whose cell-data I need to pass around the application. Due to design-reasons ...
Me3nTaL's user avatar
  • 505
2 votes
1 answer
955 views

I use QTableView to display and edit a Pandas DataFrame. I use this method in the TableModel class to remove rows: def removeRows(self, position, rows, QModelIndex): start, end = position, ...
Dinh Quang Tuan's user avatar
0 votes
0 answers
1k views

Problem at hand I a created a QAbstractTableModel to display a pandas dataframe which in turn is populated from a CSV file. In practice this application will be running in a CPython environment in a ....
Jonathan's user avatar
  • 923
0 votes
0 answers
31 views

How can I use pyqt5's model-view concept to allow a user access to a 'hidden' column in a view? I often subclass QAbstractTableModel to show a Pandas DataFrame in PyQt5. (h/t to posts on this site). ...
10mjg's user avatar
  • 609
3 votes
1 answer
5k views

I try to implement a table view with two columns. The right columns shows parameters, which should not be changed by runtime, and left column shows values, that should be updated constantly at runtime....
taathy's user avatar
  • 265
0 votes
0 answers
569 views

I use QTableView to display a QAbstractTableModel. I edited the QAbstractTableModel so that I can edit the cells, when displayed. The editing in the window works perfectly, but I want to connect the ...
Mazze's user avatar
  • 453
0 votes
0 answers
409 views

Im using PyQt5 to develop an MVC application using sqlite DB. I have a custom model inheriting from QAbstractTableModel. For the view im using in QTableView. In the custom model i have added function ...
BizBaker's user avatar
0 votes
1 answer
366 views

The code below produces a QTableView that is generated from a Pandas DataFrame. columns A and B contain int values, C contains a list of ints for each cell. This currently is displayed as int values. ...
RMRiver's user avatar
  • 645
0 votes
1 answer
2k views

I'm trying to update a QTableView when the data source (Pandas Dataframe) changes. I'm using a QAbstractTableModel as the "base" table model and a QSortFilterProxyModel to do some filtering. ...
Felix D's user avatar
  • 33
0 votes
1 answer
544 views

I am trying to use beginMoveColumns to move a single column over in a QTableView, but it doesn't work properly in my example below. The cell selections get shuffled and column widths don't move. ...
pyjamas's user avatar
  • 5,507
2 votes
1 answer
1k views

I am trying to move rows in my QTableView in the example below, but am struggling to understand how to correctly call beginMoveRows. My example has 3 buttons to do various row movements, and the 3rd ...
pyjamas's user avatar
  • 5,507
0 votes
0 answers
107 views

I would like to add QComboBox with inputs (Id, Name, Year) to the first row of QAbstractTableModel? I tried similar posts How to set data to QComboBox using QAbstractTableModel (Model/View)? and How ...
Aslan Aliyev's user avatar
0 votes
1 answer
490 views

I'm using a subclassed QAbstractTableModel with dataclasses as items. Each dataclass contains a field "field1" with a list, which I'd like to display in a listview and have it automatically ...
Sir Teddy the First's user avatar
1 vote
1 answer
802 views

In my custom model setting a bool value automatically creates a combobox/dropdown menu with True/False options, whereas string values create a regular line edit type of editor. I'm trying to ...
Fernando Ortega's user avatar
0 votes
0 answers
226 views

In the following you'll find my custom model. I reduced it to the just necessary things: class myClass : public QAbstractListModel { Q_OBJECT enum Role { id=Qt::UserRole, ...
Matthias's user avatar
  • 235
1 vote
1 answer
438 views

I have a QTableView that uses QItemDelegate and QAbstractTableModel. A row contains a QPushButton, QCheckBox, QCombobox and QTimeEdit. My issue is that text appears behind the widgets. When a cell ...
Zoes's user avatar
  • 29
0 votes
1 answer
474 views

I know there have been a lot of times question was answered on stackoverflow about how to set row height for QTableView. I'm asking one more time but my question is not exactly about "how", ...
StarterKit's user avatar
0 votes
1 answer
887 views

I am trying to update my model when a combo box is changed. I have a function connected to the combobox that updates the model but from this question - "the delegates should use the base ...
Zoes's user avatar
  • 29
0 votes
1 answer
2k views

I am trying to add a row to QTableView with a QAbstractTableModel and QItemDelegate where the widgets appear in the added row. From what I've read I need to call .edit(index) on each item of the added ...
Zoes's user avatar
  • 29
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
2 votes
1 answer
2k views

How can i insert and delete single rows in a QTableView using the QAbstractTableModel. A new row will be given in a seperate thread which is connected via a pyqtsignal to the QAbstractTableModel. The ...
progS's user avatar
  • 55
1 vote
0 answers
664 views

Is there a way, perhaps using QStyledItemDelegate (like here PyQt / Qt, tableview with custom delegate to use ellipsis for text overflowing cell or here QStyledItemDelegate truncates text horizontally ...
10mjg's user avatar
  • 609
0 votes
0 answers
688 views

I want to create a TreeTable with a given data from a list of lists. At the moment I only managed to create a normal table with the help of a QTableView and a QAbstractTableModel. Now I want to ...
enyo's user avatar
  • 41
0 votes
1 answer
1k views

I'm having trouble with correctly implementing a column of checkboxes on a class that inherits from QAbstractTableModel. Each row in the table has a checkbox that's initially checked when a new item ...
sean1441's user avatar
1 vote
1 answer
824 views

I have this simple example: a value in last column of my QAbstractTableModel equals value in column 1 multiplied by 2. So every time a change is made to value in column 1 - it results to a change in ...
Nasty_gri's user avatar
  • 103
0 votes
0 answers
972 views

I was trying to build a simple QAbstractTableModel to familiarize myself with the concepts. The model I build however, is not behaving as I anticipated. I would like the model to display a tick mark ...
Max's user avatar
  • 3

1
2 3 4 5