Skip to content

fontlabapp.qt.painting.drawing.Drawing

Drawing

Transparent child overlay whose callback receives an active QPainter.

Pixel coordinates use the parent's local device-independent coordinates. Canvas coordinates use flCanvas.mapToViewportF freshly at each paint. A small native timer requests an update only when native zoom/size changes; it never paints or calls update/repaint from paintEvent. Keep the handle alive and call close(), or use it as a context manager.

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
__enter__ function (self) -> Self (shared captured text)
__exit__ function (self, *exc: object) -> None (shared captured text)
__init__ function (self, parent: Any, callback: Callable[[Any], None], *, canvas: Any=None) -> None
close function (self) -> None Disable callbacks immediately and resume native teardown after failures.
closed attribute (self) -> bool Whether callbacks are disabled; failed close() still needs a retry.
raise_if_failed function (self) -> None Propagate a callback failure at a safe Python boundary after capture.
refresh function (self) -> None