added a draft version of a new selectable table view#37
Draft
added a draft version of a new selectable table view#37
Conversation
…ScrollBar/verticalScrollIndicator properties Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…here are more items available even in abscence of scrollbar/scrollindicator
Instead of dynamically catching the width of header labels and propagating them to the delegates with a timer, the widths are now defined at the top-level listview component. See the examples given
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. |
Author
|
I'll have to wait for the scrollbars to merge to see how well the final version of this ListView works |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.