qtablewidgetitem Questions
8
Solved
In QtCreater I added a table to my project. in my code I am generating some data to output into the table. I want to add a QCheckbox into each row to allow the row to be selected. All the content o...
Lauder asked 13/2, 2013 at 6:42
3
Solved
I'm very new to Python and even newer to PyQt. I've managed to create a table, but want to add images in certain cells. I've read that I need to subclass the QTableWidget class, or possibly the QTa...
Megaphone asked 5/4, 2011 at 14:16
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
3
Solved
Why with the following code I just get an empty table widget?
QString imgPath = "C:\\path\\to\\image.jpg";
QImage *img = new QImage(imgPath);
QTableWidget *thumbnailsWidget = new QTableWidget;
QT...
Velour asked 16/1, 2013 at 19:8
4
Assuming I have a QTableWidgetItem item and I just wanna validate data that users enter. Example, users only enter a number into that item otherwise the program will show a warning dialog.
I also s...
Wakashan asked 19/8, 2013 at 8:45
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
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
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
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
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
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
1
Solved
for(int i=0; i<page.size(); i++){
User user= Poco::AnyCast<User>(*it);
ui.table->setItem(i,0,new QTableWidgetItem(user.userName));
ui.table->setItem(i,1,new QTableWidgetItem(user...
Canine asked 23/7, 2014 at 11:31
2
Solved
I want to add a right click menu to delete, rename or open image in each of cell of QTAbleView in the rigt click menu, I have tried and found everyone is trying to add menu to a header in tableview...
Giulia asked 5/1, 2014 at 6:15
2
Solved
I am new in pyqt4 and I can't figure out how to do this. I have a QtableWidget with data in it. I want to change some background color of the tableWidget's cells.
I tried self.tableWidget.item(3,...
Cremate asked 19/9, 2013 at 7:50
1
Solved
I have a QTableWidget with an N number of columns, which when the number of columns are set, they automically fill in the entire QTableWidget. When I try to dynamically change the number of columns...
Urbanite asked 1/7, 2013 at 18:55
1
If a cell have some data, using
tableWidget->item(8,0)->setBackgroundColor(Qt::red);
to change the background color will work, but if a cell is blank it will fail.
Utta asked 25/3, 2013 at 15:8
1
Solved
I am trying to insert and display integers in my QTableWidget. They don't display. It works if I convert everything to strings, but then I can't sort columns numerically--only lexically (1, 10, 100...
Juniorjuniority asked 25/10, 2012 at 17:30
2
I am trying to make certain cells in my QTableWidget have different colored borders based on the information contained in an item(cell).
I do not want to select those cells and use the selection-...
Elwandaelwee asked 31/8, 2011 at 19:25
2
Solved
I want to associate additional data with each QTableWidgetItem inserted into the table, in order to use that data in future, when it is being clicked on a table item. But that data should not be vi...
Ruff asked 5/4, 2010 at 16:42
1
© 2022 - 2024 — McMap. All rights reserved.