[PyQt] Layout addWidget alignment
phil at riverbankcomputing.com
Wed Jul 1 19:16:07 BST 2015
On 01/07/2015 7:07 pm, Baz Walter wrote:
> On 01/07/15 17:40, Esteban Martinena Guerrero wrote:
>> The addWidget method of the Layouts accepts 3 arguments. If you set
>> alignment for any widget in a layout tf would be the third argument of
>> addWidgetMethod but it's in the second one. This doen't generate any
>> because the second and third parameters are both optional and
>> Can anyone tell me if you have the same problem?
> What problem? Either of:
> layout.addWidget(widget, 0, Qt.AlignCenter)
> layout.addWidget(widget, alignment=Qt.AlignCenter)
> work exactly as expected for me.
The problem is that the bad code is generated by pyuic.
More information about the PyQt