--- uic/uiparser_orig.py	2010-09-20 12:14:04 +0000
+++ uic/uiparser.py	2010-09-22 13:44:27 +0000
@@ -406,14 +401,15 @@
         if self.stack.topIsLayout():
             top_layout = self.stack.peek()
             gp = elem.attrib["grid-position"]
             if isinstance(top_layout, QtGui.QFormLayout):
-                if gp[1]:
+                if gp[3]:
                     role = QtGui.QFormLayout.FieldRole
                 else:
                     role = QtGui.QFormLayout.LabelRole
-
+                self.configureLayout(elem, layout)
                 top_layout.setLayout(gp[0], role, layout)
             else:
                 self.configureLayout(elem, layout)
                 top_layout.addLayout(layout, *gp)

