Skip to content

fontlabapp.qt.layouts.content

content

Fit an injected child to a container's current contents rectangle.

No Qt import is needed. Call on the UI thread with objects that expose the usual rectangle accessors and setGeometry. Values and exceptions pass through unchanged; title/style and child layout remain with the caller.

Complete member index

Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.

Member Kind Signature Summary
fit_contents function (container: Any, content: Any) -> tuple[Any, Any] Set child geometry once; return width/height only after success.