[PyQt] ANN: PyQt v4.8.1 Released

Phil Thompson phil at riverbankcomputing.com
Thu Nov 4 11:50:24 GMT 2010


On Wed, 03 Nov 2010 16:56:02 +0100, Linos <info at linos.es> wrote:
> Hello Phil,
> 	i have a problem with this version and a QFormLayout, this code in the
> 	.ui file:
> 
> 	   <item row="8" column="1">
>              <widget class="QSpinBox" name="avisoMinimaRotacionSpinBox">
>               <property name="minimumSize">
>                <size>
>                 <width>80</width>
>                 <height>0</height>
>                </size>
>               </property>
>              </widget>
>             </item>
>             <item row="8" column="0">
>              <widget class="QLabel" name="avisoMinimaRotacionLabel">
>               <property name="text">
>                <string>AVISO MIN ROTACION:</string>
>               </property>
>               <property name="buddy">
>                <cstring>avisoMinimaRotacionSpinBox</cstring>
>               </property>
>              </widget>
>             </item>
> 
> ends like this in the generated file:
> 
> 	self.avisoMinimaRotacionSpinBox =
QtGui.QSpinBox(self.datos_generales_tab)
>          self.avisoMinimaRotacionSpinBox.setMinimumSize(QtCore.QSize(80,
>          0))
>  
>
self.avisoMinimaRotacionSpinBox.setObjectName(_fromUtf8("avisoMinimaRotacionSpinBox"))
>          self.formLayout.setWidget(8, QtGui.QFormLayout.LabelRole, 
> self.avisoMinimaRotacionSpinBox)
>          self.avisoMinimaRotacionLabel =
>          QtGui.QLabel(self.datos_generales_tab)
>  
>
self.avisoMinimaRotacionLabel.setObjectName(_fromUtf8("avisoMinimaRotacionLabel"))
>          self.formLayout.setWidget(8, QtGui.QFormLayout.FieldRole, 
> self.avisoMinimaRotacionLabel)
>          self.avisoMaximaRotacionLabel =
>          QtGui.QLabel(self.datos_generales_tab)
> 
> should be the reverse obviously, the .ui file it is rendered correctly
in
> QT 
> Designer, could this be other pyuic bug?

Patch attached.

Thanks,
Phil
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pyuic4.diff
Type: text/x-diff
Size: 493 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20101104/e57b6141/attachment-0001.diff>


More information about the PyQt mailing list