This kind of works, but not exactly. self.SearchCriteriaGroupBox.layout() is a QVBoxLayout, not the QGridLayout. I need to get to the QGridLayout created in the ui file and insert another widget into it. I tried changing the last line of main.py to:

SearchCrteriaGroupBoxLayout = QGridLayout (self.SearchCriteriaGroupBox.layout()) SearchCriteriaGroupBoxLayout.addMultiCellWidget (self.SearchCriteriaListView, 0, 0, 0, 4)

But as you would expect, it just added a second QGridLayout below the one created by ui.py. Is there anyway to get to add a widget to the QGridLayout that was created by ui.py?

-Chad


On Aug 10, 2005, at 11:30 AM, James Emerton wrote:

The answer is in the ui code you posted: self.SearchCriteriaGroupBox.layout()

http://doc.trolltech.com/3.3/qwidget.html#layout

James


_______________________________________________
PyKDE mailing list    [email protected]
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Reply via email to