Skip to main content

All Questions

Tagged with
0 votes
0 answers
46 views

get updated value from comboBox in a QTableWidget

I need to get 3 values from a cell in a QTableWidget so I tried a comboBox. I also have checkboxes in the table. I'm able to get the value of the comboBox when it is clicked, but I need the value it ...
Brian's user avatar
  • 1
0 votes
0 answers
25 views

Problem when using pyqt tablewidget, float numbers are displayed with an apostrophe for all fractional parts [duplicate]

When using pyqt tablewidget, I find that when the data is a float number and there is only one integer digit, its fractional parts is incorrectly displayed as an ellipsis. This is strange, with or ...
juji yan's user avatar
0 votes
0 answers
83 views

python qt5 tab widget: how set tabs with table widget to full main window size? [duplicate]

I'm new with qt5 in python and struggling al lot to get a decent layout in qt5. Below you find my code to create the tabs with a table in it. The code works fine to set the data in each table. But the ...
MarcusAurelius's user avatar
0 votes
2 answers
111 views

How to do QtWidgets.QTableWidget.setHorizontalHeader() to maintain default behavior? [duplicate]

pyqt5. Regular table: from PyQt5 import QtWidgets app = QtWidgets.QApplication([]) table = QtWidgets.QTableWidget(3, 3) table.setHorizontalHeaderLabels(['1', '2', '3']) table.show() app.exec_() ...
Somebody Young's user avatar
0 votes
0 answers
24 views

Python - PyQt5 - QTableWidget set constraint while resizing header sections

File: table.py from PyQt5 import QtCore, QtGui, QtWidgets class Ui_Dialog(object): def setupUi(self, Dialog): Dialog.resize(515, 285) self.gridLayout = QtWidgets.QGridLayout(...
Chris P's user avatar
  • 2,289
0 votes
0 answers
35 views

How to use Filter Option in QTableWidget - follow-up issue with PyQt5

I am trying to make use of eyllanesc's brilliant answer to this post using PyQt5. I had to adapt the code for PyQt5 (original was with PyQt4) but I am running into some issues with the function self....
Hotone's user avatar
  • 451
0 votes
1 answer
56 views

sub classing python pyqt5 QHeaderView [duplicate]

file: table.py from PyQt5 import QtCore, QtGui, QtWidgets class Ui_Dialog(object): def setupUi(self, Dialog): Dialog.resize(400, 300) self.verticalLayout = QtWidgets.QVBoxLayout(...
Chris P's user avatar
  • 2,289
0 votes
0 answers
36 views

QTableWidget - Column and row constraints

I have many tables with this specifications: Number of rows 0 - ? Number of columns 3 - 12+ In most columns i have only text, in many cases the last column is filled with setCellWidget (a QFrame with ...
Chris P's user avatar
  • 2,289
1 vote
1 answer
131 views

Merging cells in an Excel-like table with PyQt5 not working as intended

I'm trying to make an Excel-like table in a GUI application with PyQt5. I'm struggling to add a merge/unmerge feature. After adding a few print statements, I noticed that merging a first group of ...
Benjamin573's user avatar
0 votes
0 answers
15 views

I am having an issue updating a table_widget in PYQT5 [duplicate]

using the following code the file is being created and then read by the code to update the table_widget. The table is not being updated in the gui. Print statements show that the data is being read ...
Virginia Walters's user avatar
0 votes
1 answer
45 views

Setting QT_AUTO_SCREEN_SCALE_FACTOR cause QTableWidget gridline and headerView border line miss-alligned

Example: File: table.py # -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'table.ui' # # Created by: PyQt5 UI code generator 5.15.9 # # WARNING: Any manual changes made to ...
Chris P's user avatar
  • 2,289
0 votes
0 answers
70 views

Display data in TableWidget Qt Designer

{import os import sys import pyodbc as odbc import pandas as pd from check import * # check is my ui file class MainWindow(QMainWindow): def __init__(self,parent=None): QMainWindow....
Matt John's user avatar
1 vote
1 answer
134 views

Adding QTableWidget and QLabel with Pixmap side by side using PyQt6

I am trying to build a GUI with PyQt6 in python where I create a table and an image to the right inside a tab. For some reason it creates the table occupying the entire screen and does not show the ...
Gerardo Lopez's user avatar
0 votes
1 answer
57 views

How to reposition custom QHeaderview when QTableWidget is scrolled horizontally

I am using a custom header based on QHeaderView to create column labels that span multiple columns. The column labels are themselves QLabel objects. I can correctly resize the column labels when a ...
mr_js's user avatar
  • 989
0 votes
0 answers
30 views

Problem with getting data from QTableWidget via iteration [duplicate]

I'm using PySide2/PyQt5 to create a QTableWidget as shown in the code below. I'm using a QItemDelegate to restrict the input of certain columns to integer only. If I set cell 0,0 to say 3, then in the ...
mr_js's user avatar
  • 989

15 30 50 per page
1
2 3 4 5
24