qtablewidget Questions

3

Solved

How can I add a checkbox/radiobutton/combobox to a QTableWidget or a QListWidget?
Doolittle asked 20/3, 2011 at 15:9

2

Solved

Is there a way to place QCheckBox as a cell widget of QTableWidget in the center of a cell, not at the left side, without additional QWidget and adding the checkbox to it's layout?
Impressive asked 26/9, 2017 at 19:43

4

Solved

Suppose I have a 2D array full of data say 10 x 10. The contents, as well as a number of rows, can change any time. Now I want to display this data in a QTableWidget. I use a timer with time out 1...
Joel asked 24/2, 2014 at 19:24

2

Solved

Is there anyway to add like a button in qtablewidget? But the date within the cell would stil have to be displaying, for example if an user double clicked a cell, could i send a signal like a butto...
Capuano asked 17/8, 2012 at 15:56

4

Solved

what I want to do is to change the color of a QTableWidget item, when I hover with the mouse over the item of my QTableWidget.
Rebak asked 19/11, 2013 at 6:47

5

Solved

The QTableWdiget is fabulous for simple grid displays. Changing colors, fonts, etc is straightforward. However, I did not manage to give the grid a 'tighter' look with less vertical whitespace. I...
Harbert asked 1/2, 2010 at 18:51

4

Solved

Say I have a QTableWidget and in each row there is a QComboBox and a QSpinBox. Consider that I store their values is a QMap<QString /*Combo box val*/,int /*spin box val*/> theMap; When combo...
Volant asked 6/7, 2010 at 7:45

0

I have a QTableWidget of 5 columns with horizontal headers. I need to launch a function when header of column 4 is clicked. Currently, I have a working solution that consists of calling this funct...
Herson asked 5/2, 2019 at 11:53

1

I am using PyQt5 and using PyCharm. How can I align all cells under one column to center? The code below seems to be working but for only one cell which is the header. What should I change or add? ...
Disfigure asked 4/10, 2018 at 10:23

1

Solved

I need a QTableWidget based on a QTabelModel and QTableView with some buttons added above the table. See the following figure: The width of the QTableWidget should be adjusted so that it is not ...
Befall asked 17/8, 2018 at 10:22

1

Solved

I have a QTableWidget with 7 colums in a QDialog, where every row has information about files in a specific directory. With some checkboxes, lineedits etc I want to have the possibility to show onl...
Farnsworth asked 8/1, 2018 at 6:43

2

Solved

I would like to delete row where QPushButton is clicked how it is possible to I think it is reasonable to use slots but how to do it don't know , if you have any ideas how to get a row of selected ...
Polyhydroxy asked 20/9, 2017 at 18:35

1

Solved

My question is about the way the QTableWidget displays the cell values. I'd like for the cell to show only three decimals when it's not being edited and show the full value when you double click f...
Erda asked 9/8, 2017 at 20:14

4

Solved

I am currently working on a widget that was designed in Qt Designer. I am having trouble with the syntax / overall concept of trying to add a row to a Qtable in PyQT. There is no method, which I ha...
Succursal asked 4/6, 2014 at 18:0

1

Solved

I'm trying to change the background color of a QTableWidget row. There are some others posts about the same thing but none of the given solutions worked for me. With that solution, we are setting ...
Drysalt asked 20/4, 2017 at 6:41

4

Solved

How can I sort a coloumn in pyqt by the highest number? Currently I have setSortingEnabled(True) and that only sorts it by the most numbers (ex. 1,1,1,1,2,2,2,3,3) i want to do it by the highest nu...
Army asked 13/8, 2012 at 16:32

1

Solved

I have a scrollview to which I dynamically add QTableWidgets. However, the QTables themselves also have scrollbars and therefore don't show the full table. Is there a way to disable the scroll bar ...
Gomer asked 9/1, 2017 at 7:26

2

Solved

I see how to detect click in a QTableWidget cell by watching the cellClicked(int row, int column) signal (code below). I would like to do the same for the cells of the horizontal header and get th...
Mononuclear asked 14/7, 2016 at 11:54

2

I cannot find any information for the following question: is there a possibility to set width to columns for QTableWidget in designtime. When I opened ui-file in text editor, I found, that columns ...
Womanizer asked 21/2, 2013 at 13:7

2

Solved

I have custom widget made with qt designer and i want to add it to QTableWidget cell. But it doesn't work. Here is the code : int nRows =10; for(int row = 0; row < nRows;row++;) { QTableWidg...
Otilia asked 25/4, 2012 at 14:16

2

Solved

I'm trying to do this with the check-box. Sadly is made for C++ and any adaptation of the code for Python has the result this error: 'QWidget' object is not callable What I wanna to do is to add a ...
Faludi asked 8/9, 2015 at 12:39

2

Solved

I have a list containing lists with two items,a word and a number.This list will be presented using a tablewidget. My aim is to produce a table with two columns and with the neccessary rows,but th...
Iliac asked 20/12, 2011 at 1:33

7

Solved

I have a MainWindow with a QToolbar, QWidget and a QTabWidget. The layout is "Grid". However, my window is resizeable and since I have a layout it works well. But there is one problem, in...
Cinelli asked 28/3, 2013 at 15:57

2

Solved

THE CODE: populateTable() { tableWidget->clearContents(); tableWidget->setRowCount(stringList.size()); for(int i = 0; i < stringList.size(); ++i) { tableWidget->setItem(i, 0, new ...
Shibboleth asked 17/4, 2012 at 13:51

3

Solved

In tableWidget I have one column entirely made up of checkable items. I can't figure out how to center the checkbox or at least remove the text-box next to it. As you can see on this picture text-...
Bani asked 26/4, 2013 at 13:28

© 2022 - 2024 — McMap. All rights reserved.