Skip to main content

Questions tagged [qtableview]

QTableView is a Qt class providing a default model/view implementation of a table view.

qtableview
0 votes
0 answers
45 views

Custom QAbstractItemModel or QAbstractItemView like explorer

I've been experimenting with the model view concept in qt and c++ for some time now. My goal is to present the data in a table like Windows file explorer can do... There is no problem with tabular ...
exo's user avatar
  • 385
-1 votes
1 answer
26 views

Set QTableView cell size when using fetch more?

I can set the size of my table rows using the following code: table = QTableView() table.setModel(CustomModel(dataFrame)) table.resizeRowsToContents() My CustomModel.data() function ...
arthur.sw's user avatar
  • 11.4k
0 votes
1 answer
24 views

Problems displaying a table next to an image in Python and QT6

I have problems displaying a QTableView next to an image (QLabel / QPixmax) in window size. The table as well as the image (original size 600 x 400 pixels) are displayed very small, see attached image....
mepi0011's user avatar
0 votes
1 answer
44 views

Tableview set a image as a icon without showing the path as text

I have a 4 column QtableView that I am filling from a .csv file. The first column cells shows a custom icon from a folder of images and the rest of the columns are text only. Everything works as ...
Freecat's user avatar
  • 29
1 vote
0 answers
30 views

Set checkbox indicator width or bg color within custom QStyledItemDelegate.paint()

I have a QTableView, and a custom QStyledItemDelegate for some of the columns so that they display a centered checkbox. It works, but the checkbox's indicator (the border, basically) is thin and hard ...
bernardlebel's user avatar
0 votes
1 answer
53 views

What should I do to use a QTreeView child to select a subset of data in a model to show it in a QTableView?

Here I'm trying to create an Qt model/view that shows different subsets of data in a table view from a model depending of the child selected/clicked in the QTreeView, but I'm new at this and the ...
Vil's user avatar
  • 1
0 votes
1 answer
149 views

Center a Checkbox Delegate in QTableView with PySide6

I was using a Checkbox Delegate in my QTableView originally created from around the time of PyQt 4.8 or PySide 1.2.1. It was also working in PySide2, but when I tried to update my application to ...
CatamountJack's user avatar
0 votes
1 answer
58 views

How to set selected text colour, style in Qtableview string

Below is a small working code to display what I am trying to achieve. import sys import os import sqlite3 from PyQt5.QtSql import * from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5....
Badri's user avatar
  • 97
0 votes
0 answers
25 views

Overridden QSqlTableModel flags function not works properly

Im creating a DBMS PyQt app with an SQLite db and I need the records to be editable only by the person who inserted them. This is the code snippet that manage the permission above: class ...
BCPTe's user avatar
  • 1
0 votes
0 answers
25 views

Vertical Scroll Bar Not Working in QTableView

I have a dialog with a QTableView in it. It is the size for three rows and when a fourth is added, a vertical scrollbar appears as expected. However, the scrollbar does not function to move the rows ...
Calvin Henry-Cotnam's user avatar
0 votes
0 answers
19 views

Sorting ID in QtableView module

I'm using pyside6. I have a QtableView module which displays data inputed by 'customer'. If customer delete transaction and creates new the ID it receives is considered the next number from the ...
1lt3rra's user avatar
0 votes
0 answers
20 views

Inserting a widget inside a specific cell inside a QTableView [duplicate]

I want custom widget inside a specific cell of the QTableView I have test code, Which has a QTableview with these properties Custom header for each column Only one row getting selected at a time ...
Santhosh Dhaipule Chandrakanth's user avatar
0 votes
1 answer
49 views

Pyside6, tableView.selectedIndexes, list index out of range

in this code function must take one index and simply delete it. And a problem is in delete_current_transaction, pycharm says that (index = self.ui.tableView.selectedIndexes()[0]) list index out of ...
1lt3rra's user avatar
0 votes
1 answer
44 views

Select QTableView row from a model index

In my Qt 6.6.0 application I set up a QSqlTableModel and a QTableView with sorting enabled: QSqlTableModel *model; model = new QSqlTableModel(this, db); model->setTable("table"); model-&...
Mark's user avatar
  • 4,662
0 votes
0 answers
40 views

PyQT5 sizing issue with QTableView and QGridLayout

I built a GUI program that has outputs on single line tables, and I recently updated it using QGridLayout to make it dynamically adjust to different system scalings. The issue I'm having is the pandas ...
Tom's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
85