qtableview Questions

5

Solved

Here's a print screen of my software: As you can see, the first QTableVIew headers do not take 100% of the width. In fact, there is a small vertical white space on the right of the field size. ...
Inapprehensive asked 8/7, 2013 at 20:37

3

Solved

I'm using QtableView to show my logs and to filter them by column, QSortFilterProxyModel is used. If i filter one column using certain value, and with the filtered data, if i try to filter second c...
Bora asked 9/11, 2017 at 12:11

3

Solved

In my layout, my dynamically generated QTableViews seem to get resized to only show one row. I want to have the container of the table views to have a scrollbar instead of the individual table view...
Trigg asked 25/2, 2017 at 16:42

4

Solved

I am using QTableView to display data retrieved from QtSql.QSqlQuery I want to know how can i create filters for it like in excel. In the above image i need to get the filters for All heders (S...
Runnymede asked 28/12, 2012 at 11:28

4

I can add a single tooltip to all headers using tableview = QTableView() tableview.horizontalHeader().setToolTip("headers") but can I add different tooltips to each header, i.e. I need to access...
Renteria asked 14/6, 2012 at 6:49

4

Solved

We have a QSortFilterProxyModel installed on a QTableView and two (or more) QLineEdit for filtering the view (based on the text of these QLineEdits) In our view, we have a slot that tells us the st...
Exploration asked 14/9, 2016 at 11:6

5

Solved

We can select multiple items(partial rows and partial columns) from QTableView using self.tableView.setSelectionMode(QAbstractItemView.ExtendedSelection), but after selecting some rows and columns(...
Costumer asked 24/10, 2016 at 18:39

3

Solved

I want to hide the ID column in the QtableView and i can't do that on my implementation. Can anyone help me? void MainWindow::on_actionClear_Search_triggered() { model = new QStandardItemModel(car...
Sublet asked 25/9, 2013 at 10:4

9

I have a table with 3000 rows and 8 columns. I use the QTableView. To insert items I do: QStandardItem* vSItem = new QStandardItem(); vSItem->setText("Blabla"); mModel->setItem(row, column, ...
Cale asked 27/10, 2010 at 8:20

4

After watching many threads about getting selected rows numbers, I am really confused. How do you get ROW numbers in QTableView using QStandardItemModel I used below selection model and behavior a...
Framing asked 8/5, 2011 at 12:45

3

Solved

The selection behavior is set to select rows, but only the hovered cell is highlighted. Is there any way to highlight the entire row?
Graphy asked 13/12, 2013 at 11:56

3

Solved

I'm using a custom QSortFilterProxyModel to implement custom filtering for QTableView by overriding filterAcceptsRow(). How can my application be notified when I change the filtering criteria and a...
Merryman asked 23/4, 2015 at 13:14

2

Solved

I have a QTableView object in my dialog. I need to access the horizontal headers of this table and put them into a QStringList object. Despite intensive search, I could not find in Qt documentat...
Windstorm asked 8/4, 2014 at 18:1

2

Solved

I am using the QTableView to display a QAbstractTableModel: #include <QtGui/QApplication> #include <QAbstractTableModel> #include <QTableView> class TestModel : public QAbstract...
Varied asked 23/7, 2012 at 3:50

2

Solved

I have a QTableView and I want to validate user input. If user insert an invalid value in a cell of the QTableView, I want to highlight that cell and disable a QPushButton. How can I achieve this?...
Oletta asked 28/10, 2014 at 17:27

4

Solved

I'm using QTableView and QStandardItemModel to show some data. For each row, there is a column which has a check Box, this check box is inserted by setItem, the code is as follows: int rowNum; Q...
Whimsy asked 7/5, 2010 at 0:27

2

Solved

I have a QTableView that dynamically loads data from a custom model that inherits QAbstractItemModel. The model implements both fetchMore and canFetchMore. The problem is that I would like to be ...
Mayo asked 21/7, 2016 at 14:20

2

Solved

I'm curious about how I can display an image from my database in a QTableView. Is there something like QTableWidgetItem that I am able to use it in QTableView? I use QSqlTableModel.
Bursar asked 13/6, 2014 at 9:18

2

Solved

I have a QMap called map. I initialize this map with couple of row of data from my database. Now I send this map to another class which contain GUI classes. In my GUI I have a TableView item. I nee...
Kaseykasha asked 6/5, 2014 at 1:22

6

I have a QTableView with 4 Rows and 4 columns each representing their data's in it. By default, the QTableView is editable. Now, I want to make any particular column as non-editable in my QTableVie...
Melton asked 27/9, 2012 at 7:26

5

Solved

I am using QStandardItemModel for my qtableview. import ui_my_viewlogs import os from PyQt4 import QtCore, QtGui class my_viewlogs(QtGui.QDialog, ui_my_viewlogs.Ui_viewlogs): def __init__(self):...
Jaimeejaimes asked 13/6, 2016 at 9:35

3

Solved

I have a problem with the line below self.tableView.set??????????(df) that supposed to display the data frame in PyQt5. I put ??? there where I am missing the code I need. def btn_clk(self): path...
Mcgowen asked 17/6, 2017 at 9:47

2

Solved

I need to sort a column in my table when I click to header of column. But now I can't, that's my table: There is no action if I click to the header. That's my c++ QT code: void showTable() { ...
Shavon asked 7/10, 2018 at 19:10

4

Solved

I have just managed to make a QTableView work with my model. It has fixed 3 columns. When I open a window, it looks ok, but when I resize the window, the QTableView itself gets resized, but columns...
Appeal asked 17/8, 2013 at 21:13

2

Solved

I have a simple QAbstractTableModel-based model and a QTableView for it. My aim is simple as well: allow to move/reorder rows via drag'n'drop. Notes: D'n'd changes inside QTableView should be re...
Cervantes asked 13/7, 2017 at 10:18

© 2022 - 2024 — McMap. All rights reserved.