qtablewidget Questions
3
Solved
I can't seem to keep the horizontal header from being selected when I select a single row in a QTableWidget.
Example:
How can I prevent the header from being selected too? This only happens whe...
Baudoin asked 23/8, 2010 at 0:8
6
I have a Qtablewidget shown below. I want to copy multiple cells from the table and paste in other row in the same table.
So far, I can do the same on single cell, but is there a way i can do mul...
Jodhpurs asked 17/3, 2020 at 2:27
5
Solved
I would like to have one column in QTableWidget NOT editable.
In forums I have read a lot about some flags but could not manage to implement.
Bennet asked 4/4, 2010 at 10:9
4
Solved
I have a table widget with two column header in a dialog that looks like this:
There is a separation between the column headers named "Index" and "Label", but there is no separ...
Aroma asked 24/7, 2016 at 17:14
2
Solved
I would like to change the colors of a QTableWidget. I am almost getting the result I like, but two areas in the vertical header remain white:
Before writing this post I actually managed to color ...
Fogbow asked 5/11, 2020 at 18:2
6
Solved
i have the following code defining the gui of my app
class Ui (object):
def setupUi():
self.tableName = QtGui.QTableWidget(self.layoutWidget_20)
self.tableName.setObjectName(_fromUtf8("twHistor...
Nonmetallic asked 11/10, 2011 at 14:42
1
I want to be able to copy and paste to and from a Pyside6 table (QTableWidget) with control-C control-V, mainly from and to Excel.
I found @Momo's post of January 2023. 1
That did not appear to wor...
Hellfire asked 17/7, 2023 at 22:59
4
Solved
I am using PyQt based on Qt4. My Editor is PyCharm 2017.3 and my python version is 3.4. I am scraping some text from a website. I am trying to align that text to the center of the cell in a QTableW...
Philadelphia asked 25/12, 2017 at 19:0
3
Solved
I know you can set the alignment for each item using:
TableWidget->item(0,0)->setTextAlignment(Qt::AlignLeft);
However I would like to set a default alignment for all the cells in order to...
Christenson asked 5/4, 2013 at 7:9
13
Solved
I am trying to delete all rows from a QTableWidget . Here is what I tried.
for ( int i = 0; i < mTestTable->rowCount(); ++i )
{
mTestTable->removeRow(i);
}
I had two rows in my table. ...
Kristalkristan asked 6/4, 2013 at 7:4
2
Solved
I am developing an app in which I am using QTableWidgets, and I need to set their background transparent, I have tried to setStyleSheet "background:transparent;", but nothing happened.
Is...
Winstead asked 25/4, 2012 at 10:52
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
5
I have a main window which contains a main widget, to which a vertical layout is set. To the layout is added a QTableWidget only (for the moment).
When I start the application and call show on the...
Campy asked 6/1, 2016 at 15:44
11
Solved
I'm developing a computer application with PySide and I'm using the QTableWidget. Let's say my table has 3 columns, but the data they contain is very different, like (for each row) a long sentence ...
Nephrectomy asked 29/6, 2016 at 11:53
5
I've googled around but I'm not able to find a solution to my problem.
I have a QTableWidget with 2 columns and what I'm trying to do is to make them visible to the whole widget without the horizo...
Limitary asked 6/12, 2016 at 12:47
4
Solved
I have a QTableWidget with a disabled setSelectionMode (QTableWidget::NoSelection) and the QTableWidgetItems I fill in don't have the Qt::ItemIsEditable flag.
Nevertheless, a cell that has been cli...
Narceine asked 26/7, 2014 at 16:57
3
Solved
Is there a way i can hide the border of the selected cell(or make the border color as white)in a qtablewidget.. By default a border with dotted line is shown.. Can u help me...
Antependium asked 13/1, 2010 at 9:47
1
Solved
Here is the sample code:
from PyQt5.QtWidgets import QApplication, QTableWidget, QTableWidgetItem, \
QMainWindow
from PyQt5.QtCore import QSize
import sys
DATA = {
f'col{i}': [f'{i * j}' for j i...
Borchers asked 2/9, 2021 at 16:31
2
Solved
I am making a stock control program and i have hit a problem with getting the value of a selected cell, i know i need to use "QtGui.QTableWidget.currentRow" and "QtGui.QTableWidget.currentColumn" t...
Humfrey asked 29/1, 2013 at 17:18
2
Solved
I am trying to add a checkbow to every row in a QTableWidget, unfortunately it only seems to appear in the first row. Here is my code:
data = ['first_row', 'second_row', 'third_row']
nb_row = len(...
Pyroligneous asked 15/9, 2016 at 12:34
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
3
Solved
I have a QTableWidget, i export the data from this table to a csv file.
But now, i want to Open a existing csv file and populate my table with this data. how can i do it?
This is my export code, i...
Zoroaster asked 14/3, 2013 at 17:53
5
I want to highlight the row on mouse hover in my QTableWidget.
When I hover the mouse, only single cell highlighted.
I have tried this approach :
bool MyTabWidget::eventFilter(QObject *target, Q...
Mina asked 16/4, 2014 at 13:34
3
Solved
If I set the horizontalHeaderVisible or verticalHeaderVisible attribute to false in Qt Designer, this works fine. But how can I enable / disable headers in my code? I've been trying something like ...
Viscous asked 16/2, 2013 at 12:11
1
I am building a database for my work. I want to be able to sort the elements in a manner similar to how you can sort elements in excel by clicking the header of a column. I am using the pandas libr...
Bracer asked 19/1, 2020 at 13:51
1 Next >
© 2022 - 2024 — McMap. All rights reserved.