Questions tagged as 'qtablewidget'

1
answer

Associate an event double click on a QTableWidget to a slot and get the row

I am trying to double-click on the row of a table to call the method and know which row it is. I tried to do: def Tabla(self): #Boton de exportar a excel toolButton = QtWidgets.QToolButton() icon1 = QtGui.QIcon() icon1.addPixma...
asked by 23.08.2018 / 11:16
1
answer

Delete rows and send text to an item in a QTableWidget

I have a problem trying to send a text to an item in a tablewidget. This is the code I use: from PyQt5.QtWidgets import * from PyQt5.QtGui import * from PyQt5.QtCore import * from PyQt5 import uic from PyQt5.Qt import * class Principal(Q...
asked by 15.07.2018 / 23:32
0
answers

Event when selecting a row from a table in python

The code of my table is: from PyQt5 import QtCore from PyQt5 import QtWidgets from PyQt5 import QtGui import configparser import os from util.excelUtil import * class Tabla(QWidget): ''' Metodo base para la creación de una tabla con el botón...
asked by 18.12.2018 / 12:47
0
answers

Qt - Insert a QTableWidget into a QTableWidget

I wanted to insert a table into another table in a GUI in Qt. The idea is that each cell of the parent table contains a daughter table. Is this possible? Thanks and regards!     
asked by 24.08.2018 / 12:55
0
answers

Define several vBoxLayout within the same window

I have defined a vBoxLayout so that the upper elements of the window remain in the upper zone. Now, I have created a new vBoxLayout (without success) so that the table occupies the entire height of the window and there is no space left:...
asked by 21.08.2018 / 14:49
1
answer

Occupy the full width and height of the screen with a QTableWidget

I am trying to occupy all the width and height of my window with a QTable Widget for this I have: #Mi layout vboxLayout = QtWidgets.QVBoxLayout(self) self.mainLayout = QtWidgets.QGridLayout() vboxLayout.addLayout(self.mainLayout) vboxLayout...
asked by 14.08.2018 / 09:13