[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyKDE] Disappearing Layout Widget
From:       "Phil Thompson" <phil () riverbankcomputing ! co ! uk>
Date:       2005-08-16 8:03:23
Message-ID: 24291.194.203.13.71.1124179403.squirrel () river-bank ! demon ! co ! uk
[Download RAW message or body]

> On 8/11/05, Chad Brantly <cbrantly@darwin.sfbr.org> wrote:
>> 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?
>>
>
> It should be possible to navigate the various layout's children to get
> at the correct instance.    I haven't tried this, so you're going to
> have to experiment.  (Python's interactive shell is one of its best
> features.)

Note that this will be easier in the next release of PyQt because it
should work out the exact type of the layout.

Phil

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic