Hi guys,

I have a problem with PyQT,
I'm trying to put multiple QTableView in a QGridLayout.
It works well for stardard size of QTableView, but when i use a specific Width setup like that layout.addWidget(QtGui.QTableView(),0,0,1,2), it locks the QTableView's Width.
I want to obtain a QTableView wich is double the size of a default one .

Here's an example of the code i have .


def addColumn(self,indData,columnTitle,rowTable,column Table,heightColumn,widthColumn):
self.verticalLayout = qt.QVBoxLayout()
self.label = qt.QLabel(self)
self.label.setText(columnTitle)
self.verticalLayout.addWidget(self.label)
self.tableView = qt.QTableView(self)
self.tableView.horizontalHeader()
self.tableView.verticalHeader()
self.tableView.setVerticalScrollBarPolicy(qc.Qt.Sc rollBarAlwaysOff)
self.tableView.setVerticalScrollMode(qt.QAbstractI temView.ScrollPerPixel)
self.tableView.setHorizontalScrollBarPolicy(qc.Qt. ScrollBarAlwaysOff)

m = Model(self.customers[indData],widthColumn)
self.tableView.setModel(m)
d = Delegate(self.labelSelection)
self.tableView.setItemDelegate(d)
self.tableView.horizontalHeader().setResizeMode(qt .QHeaderView.Stretch)
self.tableView.resizeRowsToContents()
self.tableView.resizeColumnsToContents()
self.verticalLayout.addWidget(self.tableView)
self.gridLayout.addLayout(self.verticalLayout,rowT able,columnTable,heightColumn,widthColumn)


As you can see i would like to obtain two "fullsize" items in the double QtableView.
Do you have an idea of how i can fix it ?

Thanks a lot