Skip to content

added a draft version of a new selectable table view#37

Draft
seventil wants to merge 31 commits intodevelopfrom
selectable_table_view
Draft

added a draft version of a new selectable table view#37
seventil wants to merge 31 commits intodevelopfrom
selectable_table_view

Conversation

@seventil
Copy link
Copy Markdown

@seventil seventil commented Mar 20, 2026

ListView is a styled version of QtQuick ListView that adds column-width management (fixed + flex), multi-row selection with Ctrl/Shift support via ItemSelectionModel, configurable scroll bar modes, and an empty-state placeholder. It exposes a columnWidths array where -1 means "fill remaining space," and resolves those into pixel widths that are applied to both the header and delegate rows.

ListViewDelegate and ListViewHeader are the row components. They automatically pick up resolved column widths from the parent ListView. The delegate handles click-to-select (with modifier keys), hover-to-highlight, and alternating row colors with selection highlighting. The header sits as a fixed overlay above the scrollable content.

@seventil seventil self-assigned this Mar 20, 2026
@seventil seventil added [scope] enhancement Adds/improves features (major.MINOR.patch) [priority] medium Normal/default priority labels Mar 20, 2026
@seventil
Copy link
Copy Markdown
Author

The selection stays even outside the focus and I haven't made up my mind on what to do with that. Many such tables with many selections and its tiring. Maybe the user should clear selections from the buttons that are supposed to read the listview, calling the clearSelection() method.

@seventil
Copy link
Copy Markdown
Author

I'll have to wait for the scrollbars to merge to see how well the final version of this ListView works

@seventil
Copy link
Copy Markdown
Author

seventil commented Apr 17, 2026

The issue I ran into during development: selected rows look fine with default label colorl but absolutely horrendous with disabled or recently-selected markings
selection-light
selection-dark

Potential fix is to have separate text selection colors, but thats a lot. The other potential fix is to have less difference in selection from regular background color. I'll have to think about that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[priority] medium Normal/default priority [scope] enhancement Adds/improves features (major.MINOR.patch)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant