[PyQt] Setting QTableWidget to a fixed width

Fabian Steiner lists at fabis-site.net
Sat Dec 15 12:08:51 GMT 2007


Hello!

A QTableWidget instace is added dynamically to an existing QGridLayout created 
by Qt Designer using the addWidget method:

[...]
self.ui.legend = Legend(self.ui, data)
self.ui.gridlayout1.addWidget(self.ui.legend, 2, 0, 1,1)
[...]

Unfortunately, the QTableWidget causes the existing layout to be enlarged. How 
can this be avoided?

Thanks,
Fabian


More information about the PyQt mailing list