I have a list containing lists with two items,a word and a number.This list will be presented using a tablewidget.
My aim is to produce a table with two columns and
the best solution for this, in Qt5 you have to use setSectionResizeMode instead of setResizeMode:
Qt5
setSectionResizeMode
setResizeMode
tabv = QTableView() tabv.horizontalHeader().setSectionResizeMode(QHeaderView.Stretch)
or
tabv.horizontalHeader().setSectionResizeMode(1)