[PyQt] pyuic4 gridlayout problem

Phil Thompson phil at riverbankcomputing.com
Sat Sep 12 17:41:04 BST 2009


On Sat, 12 Sep 2009 13:31:57 +0200, Michele Petrazzo - Unipex
<michele.petrazzo at unipex.it> wrote:
> Hi list,
> I just create a form with qtdesigner with a gridlayout, put two widgets
> inside and set the property layoutRowStretch to 0,1 (default 0,0)
> Now I'm trying to transform it to the python code with pyuic4, but there
> is a problem because pyuic4 "forgot" to translate the "RowStretch" value.
> Doing a test with uic-qt4, I see:
> gridLayout->setRowStretch(1, 1);
> 
> and on .ui
> <layout class="QGridLayout" name="gridLayout" rowstretch="0,1">
> 
> but on the .py generated no.
> 
> Doing it inside my code (self.gridLayout.setRowStretch(1, 1)) it works
> without problem.

Should be fixed in tonights snapshot.

Thanks,
Phil


More information about the PyQt mailing list