PyQt6 Missing Layout Size Constraint Flags

Phil Thompson phil at riverbankcomputing.com
Fri May 14 12:16:25 BST 2021


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

Phil


More information about the PyQt mailing list