I was using PyQt4 and this code works great.
self.table.horizontalHeader().setResizeMode(1, QHeaderView.Stretch)
It's stretching a column in a table. But when I run the code with PyQt5, I'm getting this error:
Attribute Error: 'QHeaderView' object has no attribute 'setResizeMode'
Can you please help? Or simply; how can I strect any column in PyQt5?