[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: PyQt6 Missing Layout Size Constraint Flags
From: Elguavas <elguavas () gmail ! com>
Date: 2021-05-15 0:01:15
Message-ID: dea17731-2427-724c-f418-96c752986622 () gmail ! com
[Download RAW message or body]
On 14/5/21 9:16 pm, Phil Thompson wrote:
> On 13/05/2021 04:27, Elguavas wrote:
>> hi there, just converting some pyqt5 code to pyqt6, so far so good, but:
>>
>> self.layout.setSizeConstraint(QLayout.SetFixedSize)
>>
>> fails becuse there is no flag in QLayout called SetFixedSize. neither
>> do the other size constraint flags seem to be available.
>>
>> i've tried looking for one of those QLayout.SOMETHING_FLAGS.whatever
>> constants in QLayout, that pyqt6 now seems to be using, but i can't
>> find any way to get the needed flag value constants.
>>
>> what am i missing here?
>
> https://www.riverbankcomputing.com/static/Docs/PyQt6/api/qtwidgets/qlayout.html#enums
ah yes i read that at the end of a long day and just saw that the flags
should still be there, missing that they are now part of that enum.
just to confirm:
self.layout.setSizeConstraint(QLayout.SizeConstraint.SetFixedSize)
works as expected.
sorry for the static on the list. ;)
>
>
> Phil
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic