Skip to content

fontlabapp.qt.literal_text · declarations 001

Back to fontlabapp.qt.literal_text

line_edit_type

line_edit_type(qt: Any) -> type

An ordinary line edit whose programmatic setter also accepts NUL.

read_text

read_text(qt: Any, raw: Any) -> str

Read a known QString value/const-reference, preserving empty and NUL.

set_mime_text

set_mime_text(qt: Any, mime: Any, text: str) -> None

Fill an existing MIME object; its allocator and ownership stay unchanged.

text_fragment

text_fragment(qt: Any, text: str) -> Any

Stage one literal run (no CR/LF/PS) as a detached native cursor value.

Paragraph identity belongs to the caller. A QTextDocumentFragment retains its selected native text after the staging document is destroyed. Prepare fragments before removing a live selection so setup failures leave it intact.