Skip to main content

Module column

Module column 

Source
Expand description

Column descriptor + supporting enums for TableView and TreeTableView.

Columns are declared once per table; the table consumes a Vec<Column<T>> and shares it with its body subtree. The cell delegate is Rc-erased so a Column<T> is cheap to clone for any internal pane that needs its own copy.

Structs§

CellContext
Per-cell context handed to a column’s cell delegate during build.
Column
Single column declaration. Column ids must be stable, unique strings — they’re the persistence key for sort, filter, width, and ordering.
ColumnContext
Per-column-header context handed to a column’s header delegate.
EditTriggers
Which gestures open a cell editor — a set, composed with |, after Qt’s QAbstractItemView::EditTriggers.

Enums§

Alignment
Horizontal alignment of a cell’s content within its column.
ColumnResizePolicy
Whether column resize commits the new width on every drag tick (Live) or only on Ended (OnRelease).
ColumnWidth
How a column’s width is determined during layout.
GridLines
Whether the table draws grid lines between rows / columns.
PinnedSide
Whether a column is pinned to one side of the table.
TabTraversal
Tab / Shift-Tab traversal policy across cells of a row.
TruncationPolicy
Strategy when a cell’s text overflows its column.