qtableview Questions

6

Solved

Is there any way to determine if a QTableView has an open editor in the current cell? I need to handle the following situation: A user double-clicks a cell and edits the data, but leaves the cell...
Whitish asked 6/8, 2010 at 18:59

1

Solved

I want to sort a QTableView when I click on the headers of my QHeaderView. I've found a several code sample on the internet like this one: Sort QTableView in pyqt5 but it doesn't work for me. I al...
Swedish asked 17/10, 2016 at 18:48

1

Solved

I'm quite new to python and using WinPython-32bit-2.7.10.3 (including QTDesigner 4.8.7). I'm trying to program an interface for using a sqlite database on two separates projects, using QtableViews....
Dactylography asked 7/10, 2016 at 10:19

2

As shown in the Image below, How can i remove the unwanted header section ? My Table has to display only 4 column headers. It should not display the whole header section. Please Help to remove t...
Philous asked 10/9, 2013 at 7:50

1

I use drag and drop in my QTableView (works). However, I do not see any drop indicator. I should see a line where the drop is supposed to be inserted, shouldn't I? At least here they say so. My in...
Irisation asked 13/6, 2016 at 17:13

3

Solved

I have a window that contains a QTableView which columns are adjusted to content and are fixed in width. The QTableView is nested within a QWidget that in turn is nested within a QScrollArea that i...
Grammar asked 27/12, 2013 at 8:30

5

I can't narrow down this bug, however I seem to have the following problem: saveState() of a horizontalHeader() restart app modify model so that it has one less column restoreState() Now, for som...
Carilla asked 22/7, 2009 at 4:13

3

Solved

Can anyone plz help me, how to save my QtableView as a Excel File. I have a QTableView and a QPushButton (Save Button). If i enter the values in my QtableView and if i click the Save Buttton the QT...
Inimical asked 27/9, 2012 at 5:45

3

What is the best way to present a clickable URL in a QTableView (or QTreeView, QListView, etc...) Given a QStandardItemModel where some of the columns contain text with URLs I'd like them to becom...
Eccrine asked 3/3, 2010 at 23:15

2

Solved

I use QTableView + QStandardItemModel to show some data (data stored in some other data structure), and this table view is sortable. Since it is sortable, when sorting this model, I also need to s...
Bobbe asked 20/6, 2010 at 23:35

1

I'm trying to create a filter for QTableWidget with QLineEdit in PySide. I've seen some tutorials using QSortFilterProxyModel for C++ but couldn't understood how to do it in Python. I need to se...
Chickenhearted asked 13/12, 2015 at 14:56

2

I want to know when user has finished editing a QTableView item, so I checked all the available signals, but I only found ones that will emit before the edit. So, what should I do now? Running Qt...
Terrigenous asked 29/4, 2013 at 6:57

1

Solved

As a follow up of Qt load indicator by animated image (aka preloader) or alternative? I try to paint inside a QTableView. But when I initialize the QPainter I get the following warnings. QWidget::...
Leftwich asked 18/9, 2015 at 13:28

3

I have a QTableView which is working properly showing my model on the GUI. however, I would like to create a "SIGNAL/SLOT" that works when I select a row from the QTableView. How can I do that?
Psychopath asked 23/4, 2013 at 14:13

1

Solved

I have a program that loads a profile from a csv file and displays the data in a table. The loading of a pandas data frame to the table is fast because I used a custom model implementation of QAbst...
Florrie asked 23/7, 2015 at 13:19

2

I am trying to have a QTableView of checkboxes, so I can use them for row selections... I have managed to do that, now I want the header Itself to be checkbox so I can check/Uncheck All or any row ...
Landing asked 19/6, 2015 at 7:36

2

I'm trying to create a QTableView that can be zoomed in and out like in Excel. A similar question was asked here: Zooming function on a QWidget However, I'm subclassing the QTableView in PyQt and ...
Convey asked 10/4, 2014 at 20:42

1

Solved

I have the following promoted QTableView: class QRightClickableTableView : public QTableView { Q_OBJECT public: explicit QRightClickableTableView(QWidget *parent = 0): QTableView(parent) {} pri...
Bamford asked 12/6, 2015 at 1:2

3

Solved

I have used QTableView to saw tabular data in my Qt program and somehow I need to differentiate some cells from others, can be done making font bold in those particular cells or painting background...
Neurovascular asked 21/1, 2014 at 17:20

3

I'm using the QTableView class with this model: class PaletteTableModel(QtCore.QAbstractTableModel): def __init__(self,colors = [[]],headers =[],parent=None): QtCore.QAbstractTableModel.__init__(...
Spinet asked 22/3, 2014 at 12:2

1

Solved

With QTableView set as editable using QAbstractTableModel's flag() method: def flags(self, index): return Qt.ItemIsEnabled | Qt.ItemIsSelectable | Qt.ItemIsEditable double-clicking the QTableVi...
Piscatorial asked 22/1, 2015 at 5:44

1

Solved

When one of the QTableView's QModelIndex is clicked I want to select an entire row of the same-row-indexes. To accomplish this I connect QTableView's clicked signal to a custom viewClicked() metho...
Ashwell asked 16/1, 2015 at 23:34

1

How do you change the default row size in a QTableView so it is smaller? I can call resizeRowsToContents(), but then subsequent inserts still add new rows at the end which are the default size. I ...
Riva asked 18/12, 2014 at 16:59

1

Solved

I am writing a simple program to display the contents of a SQL database table in a QDialog (PySide). The goal is to have a method that expands the window to show all of the columns, so the user doe...
Gonfalon asked 16/11, 2014 at 17:39

2

Solved

I have a QTableView in a PyQt application, and I want to keep track of when the selection changes. I've tried connecting the signal to a slot as follows (using the advice on this page: self.view.s...
Dubose asked 10/2, 2013 at 22:26

© 2022 - 2024 — McMap. All rights reserved.