Frank Rueter | OHUfx
2018-08-13 03:17:02 UTC
Hi all,
using PySide2 I am trying to set different resize modes for each of my
columns in a table view, but as soon as I set more than one I get a crash.
Here is what I do:
|class MyView(QtWidgets.QTableView): def __init__(self, parent=None):
super(MyView, self).__init__(parent) header = self.horizontalHeader()
header.setSectionResizeMode(0, QtWidgets.QHeaderView.Fixed)
header.setSectionResizeMode(1, QtWidgets.QHeaderView.Interactive) |
Is this a bug or am I doing something wrong?
Cheers,
frank
â
--
ohufxLogo 50x50 <http://www.ohufx.com>
*vfx compositing <http://ohufx.com/compositing.html> | *workflow
customisation and consulting <http://ohufx.com/customising.html>* *
*<http://ohufx.com/compositing.html>*
<http://www.nukepedia.com/nubridge>
Your gateway to over 1,000 free tools... right inside of Nuke
<http://www.nukepedia.com/nubridge>
using PySide2 I am trying to set different resize modes for each of my
columns in a table view, but as soon as I set more than one I get a crash.
Here is what I do:
|class MyView(QtWidgets.QTableView): def __init__(self, parent=None):
super(MyView, self).__init__(parent) header = self.horizontalHeader()
header.setSectionResizeMode(0, QtWidgets.QHeaderView.Fixed)
header.setSectionResizeMode(1, QtWidgets.QHeaderView.Interactive) |
Is this a bug or am I doing something wrong?
Cheers,
frank
â
--
ohufxLogo 50x50 <http://www.ohufx.com>
*vfx compositing <http://ohufx.com/compositing.html> | *workflow
customisation and consulting <http://ohufx.com/customising.html>* *
*<http://ohufx.com/compositing.html>*
<http://www.nukepedia.com/nubridge>
Your gateway to over 1,000 free tools... right inside of Nuke
<http://www.nukepedia.com/nubridge>