Skip to content

fontlabapp.qt.tables.selection

selection

Injected Qt table row selection; retain both native selection mechanisms.

Call on the widget's UI thread. Callers own callback guards, selection policy, widget lifetime and exception handling. No binding, font or foreign API imports. The model path keeps input order/duplicates and checks current bounds per row; the range path preserves integer conversion, deduplication and sorted ranges. Neither path blocks native signals or changes a widget's selection mode.

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
select_model_rows function (widget: Any, rows: Iterable[int], flags: Any, row_count: Callable[[], int], *, extend: bool=False) -> None Apply Select|Rows; replace or extend without Qt's selectRow replacement.
select_table_ranges function (widget: Any, indexes: Iterable[Any], column_count: Callable[[], int], range_factory: Callable[[], Callable[.… Replace with full-column table ranges; keep unfiltered converted rows.
selected_model_rows function (widget: Any) -> list[int] Return sorted unique full-row selections from the native selection model.
selected_range_rows function (widget: Any) -> list[int] Expand overlapping inclusive native table ranges into sorted unique rows.