qtableview Questions

3

Solved

In the sample code below (heavily influenced from here), I want the entire row of the clicked cell to be selected instead of the individual cell. How can I change the code to incorporate that? imp...
Jacoby asked 16/10, 2011 at 2:42

3

Solved

I am super new to Qt programming. I am trying to make a simple table that can have rows added by clicking a button. I can implement the table fine but can't seem to get the updated data to show on ...
Acerose asked 1/4, 2014 at 16:35

5

Solved

I've been struggling with this for some times now, and I can't seem to find the right way to do this. What I would like is the ability to use an animated icon as a decoration for some of my items ...
Dogwatch asked 5/12, 2010 at 21:36

12

Solved

I have a SQLite-Database and I did it into a QSqlTableModel. To show the Database, I put that Model into a QTableView. Now I want to create a Method where the selected Rows (or the whole Line) wil...
Morphia asked 4/8, 2009 at 22:26

4

Solved

I have QTableView, filled by QSqlRelationalTableModel. Changes should be committed or reverted on button hit. When I edit some row, it changes state in the view when editing finishes, and succesfu...
Illuminometer asked 10/11, 2010 at 16:27

2

Solved

I have a QTableView and I need to the get value (string) from the first cell of the selected row (any cell on the row could be selected). But I need this value only if exactly one row was selected....
Confer asked 29/7, 2012 at 16:7

6

Solved

I'm doing an implementation of a CheckBox that inherits from QitemDelegate, to put it into a QTableView. the problem is that I get when inserted flush left and I need it centered. As I understand...
Primatology asked 3/8, 2012 at 18:1

6

Solved

From this screenshot you can see a lot of space inside the rows: I've used these functions to get resizing: resizeRowsToContents(); resizeColumnsToContents(); How can I get a better fit for c...
Delgadillo asked 10/9, 2010 at 18:16

2

Solved

I need to implement a table with Qt. I believe I'll be suing a QAbstractTableModel, with a QTableView using this model. I understand I'll have to edit the rowCount(), columnCount(), and data() fu...
Southeasterly asked 7/1, 2013 at 3:59

1

Solved

I have created a model based off of QAbstractTableModel that allows the user to edit data in that model. The model is displayed in a QTableView in a QMainWindow. So far in my model I am able to mak...
Certify asked 25/4, 2019 at 18:7

2

Solved

Can anyone point me to a simple example of QTableView in PySide? I found the QTableView docs but unfortunately they don't give an example, and I'm very new to PySide, so I don't even know how to s...
Mainly asked 16/10, 2013 at 18:34

5

Solved

By default the cell in QTableView starts being edited after double click. How to change this behavior. I need it to start editing after one click. I have set combo-box delegate to the cell. When ...
Monofilament asked 16/9, 2013 at 15:2

3

Solved

I followed the Spin Box Delegate tutorial, which Qt provides, to try to implement my own QItemDelegate. It would be used to specify a QComboBox to represent data in a QTableView cell but it is not ...
Kine asked 21/5, 2013 at 0:27

2

Solved

Been googling around for some time on this one but I can't seem to find anything. Need the signal for QTableView on a selection change. Tried tbl_view.itemSelectionChanged.connect(self.select_row) ...
Berley asked 12/10, 2018 at 11:1

3

Solved

I have a QTableView which has a column with a QComboBox QItemDelegate. There is a list of completions for the combobox. When you start typing and press enter then the completion is done properly (n...
Autrey asked 18/8, 2018 at 13:25

1

Solved

I am displaying data from an SQLite database in a QTableView using a QSqlTableModel. Letting the user edit this data works fine. However, for some columns I want to use QComboboxes instead of free ...
Manque asked 21/8, 2018 at 8:53

2

I tried the CSS code: QTableView QHeaderView::section { text-align: center; } And it did not help me. PS I write the SCADA system in the WinCC OA that uses Qt, and there you can change the ap...
Dosia asked 24/7, 2018 at 12:40

3

Solved

I want to delete a selected row from the table when I click on the delete button. But I can't find anything regarding deleting rows in the Qt documentation. Any ideas?
Catrinacatriona asked 25/9, 2013 at 18:26

3

Solved

I am using QStandardItemModel inside QTableView. Here i have two button & Qtableview inside my mainwindow. I need only 4 columns inside this. And rows will vary. The two Buttons will be used to...
Tailrace asked 5/6, 2013 at 4:27

1

Solved

I would like to modify any cell (except header) within given QTableView. Here below is my original code that does not allow for any changes: import sys import csv from datetime import datetime, ti...
Esprit asked 29/12, 2017 at 11:45

1

Solved

There is a table: tab=QTableView() sti=QStandardItemModel(parent=None) sti.appendRow([QStandardItem(str(1)),QStandardItem(str(2)),QStandardItem(str(3)),QStandardItem(str(4))]) tab.setModel(sti) ta...
Gisborne asked 6/11, 2017 at 15:7

3

Solved

I need to reduce the size of first column(the column with vertical headers) How can I resize a vertical header of QTableView in PyQt4? I have very large headers and small GUI block to show this...
Debbydebee asked 22/12, 2016 at 20:39

2

I subclassed QTableView, QAbstractTableModel, and QItemDelegate. I am able to hover a single cell on mouse over: void SchedulerDelegate::paint(QPainter *painter, const QStyleOptionViewItem &op...
Disunion asked 9/1, 2013 at 19:56

3

Solved

I wrote the below code for a qt gui to view the query output in a QTableView(Model oriented). now i want to save this output as a .csv or .txt file. There were suggestions to use QTableWidget(Item ...
Vevine asked 8/12, 2014 at 7:8

4

Solved

I'm making a dictionary program that displays word definitions in a 3-column QTableView subclass, as user types them, taking data from a QAbstractTableModel subclass. Something like that: I want...
Centipoise asked 14/2, 2016 at 21:1

© 2022 - 2024 — McMap. All rights reserved.