[PyQt] pyuic5 generated code missing alignment attribute?

Phil Thompson phil at riverbankcomputing.com
Wed Sep 3 10:53:46 BST 2014


On 02/09/2014 6:58 pm, Juhani Åhman wrote:
> I tried generating UI code with pyuic5 from a ui file (see
> attachments), but it seems to miss an alignment attribute as my QHBox
> is aligned to the left instead of center.
> The uic tool generates code with the align attribute in it, so I
> suspect it could be bug.
> 
> specifically I get
> 
> self.verticalLayout_2.addWidget(self.widget)
> 
> instead of
> 
> self.verticalLayout_2.addWidget(self.widget, 
> alignment=QtCore.Qt.AlignHCenter)
> 
> I'm using version pyqt5 5.3.1-1.

Fixed in tonight's PyQt4 and PyQt5 snapshots.

Thanks,
Phil


More information about the PyQt mailing list