Questions tagged [qtablewidget]

QTableWidget is a Qt class providing an item-based table view with a default model.

Table widgets provide standard table display facilities for applications. The items in a QTableWidget are provided by QTableWidgetItem.

If you need to use your own data model, then QTableView is preferrable.

The official Qt documentation can be found here for Qt 4.8 and here for Qt 5.

1192 questions
-1
votes
1 answer

How to resize a PyQt5 stacked widget as per window size in PyQt5 Python?

I am designing a ui in qt-desginer. I have to create a UI which has a side menu bar with buttons and whichever button is pressed, its appropriate data will be shown on right side. To design this, I have I have placed two QFrame in horizontal layout…
S Andrew
  • 5,592
  • 27
  • 115
  • 237
-1
votes
1 answer

pyqt5 QTableWidget delete the row only when the whole row is selected

I'm writing a GUI that analysis CSV files and I want to implement a function where the row will be deleted only when the whole row is selected. My current problem is when I select a cell and hit backspace, the row in which the selected cell located…
Alex
  • 3
  • 3
-1
votes
1 answer

Insert image url into cell tablewidget python

I have problem with insert image from url to cell in tablewidget pyqt5 in python . I want show image in cell. You can see my table on the image from attachments. When i use my code (below) i do not get anything (zero images) in my cell.Please show…
matdud
  • 11
  • 4
-1
votes
1 answer

Loading different QWidgets dependant on highlighting row of QTableWidget

Having a QTableWidgets with a list of tables and two additional classes Combocells and Groupcells. They are shown with QTabWidget. I want to click and highlight a row or cell in the table then the two classes Combocells and Groupcells refreshs and…
Pavel.D
  • 561
  • 1
  • 15
  • 41
-1
votes
1 answer

Item in qTableWidget won't update after a "return" key pressed

I have an already filled qTableWidget and I would like to change the content of one cell. So I double-click on this cell, the previous text become highlighted, I enter a new text and I hit the "return" key. I catch the "key pressed" signal and the…
Lybhur
  • 11
  • 2
-1
votes
1 answer

How to calculate column automatically using previous column values?

I'm making a project using python where it can be like excel so when i input some numbers in my cell, it will automatically calculated From my previous question I have tried some codes again but stuck when I tried to calculate current column value…
meovvis
  • 29
  • 6
-1
votes
1 answer

Qt: problem with QTableWidget::cellClicked signal/slot not found

I have a QTableWidget, if a cell is clicked, I want to emit a signal to the MainWindow. My Header File: QTableWidget *myQtableWidget= new QTableWidget; ... private slots: void on_myTableWidgetWindow_cellClicked(int row, int…
Hoehli
  • 154
  • 10
-1
votes
1 answer

Copy a Qtablewidget to word

I'm a new user of Qt and I hope that you can help me. I want to copy a selected part of table from Qtablewidget to word file. How i can do that? Thank you!
Sabri
  • 11
  • 4
-1
votes
1 answer

Get The Row,Column values from a cell in QT

I have a problem, i want to return the selected Rows values, and the columns separately, i found a method to return both of them using the function cell(row, column), but i want to get them separately Here is my code : QTableWidgetItem *c = new…
-1
votes
1 answer

QTableWidget not displaying rows

I have to display a list of item with a QTableWidget. I am inserting such items dynamically at runtime. The problem is that the QTableWidget control is not displaying any rows. I have verified with the debugger that the items do get inserted, but…
geraldCelente
  • 1,005
  • 2
  • 16
  • 36
-1
votes
1 answer

PySide QComboBox in QTableWidget (Python)

I have table 5x3 :first cloumn just temp text ,in second column contain combo box and last column is result by choice in combo box. Now just set result into row 1 and i need set result to row for each combo box.(example:if change combo box in row…
Ash
  • 35
  • 8
-1
votes
2 answers

Showing data on QTableWidget

I have a database table and I must read it and show it on tableWidget I read it but I cant show it on tableWidget, How can I do? Thanks
ayla
  • 377
  • 4
  • 7
  • 14
-1
votes
2 answers

How can I prevent transform cursor to SplitHCursor when it's under border between QHeaderView sections

There are N columns with manual resizing width from left. Other columns widths are resizing only when columns with manual resizing are resizing. I need to prevent cursor icon changing when cursor is under borders of sections without manual…
Ufx
  • 2,595
  • 12
  • 44
  • 83
-1
votes
2 answers

What is differences between signals for QTableWidget?

I have 3 connect function in pyQt and are related to 3 signal,one slot and one widget: QtCore.QObject.connect(self.tableWidget, QtCore.SIGNAL(_fromUtf8("itemClicked(QTableWidgetItem*)")), lambda: …
PersianGulf
  • 2,845
  • 6
  • 47
  • 67
-2
votes
1 answer

Selecting a table row, coloring a combobox based on item selection

I have this table, and what I want is a few things: When I click on a cell, I want the entire row from that cell's location to be highlighted,something white-ish, and for some function to be able to get all the values from all the columns for that…
1 2 3
79
80