I have a program with a few different widgets, one of which is a table. I wish to obtain the width of the headers of my table, to use for making more widgets to ensure that they are the same Width. (Width of the headers (QTableWidgetItem) varies depending on my program input, so I wish to be able to set the width of other widgets based on whatever the width is of the QTableWidgetItems for each execution)
I have looked a fair bit of documentation myself, but It seems as though there is no easy/obvious method such as .width() to obtain it?
I have tried using the methods from a similar question, such as:
width = mainWindow.frameGeometry().width()
height = mainWindow.frameGeometry().height()
but unfortunately I just get the error that the method isn't available for the QTableWidgetItem object