Repository navigation
Conversation
QTreeView lays out every row of every expanded folder on each expand, sort and live refresh, calling the Python model about twice per row. A folder of 150,000 files took 1.0-2.7 s to expand and froze a live scan for about 1 s per refresh; Ctrl+A in the tree took up to 41 s. Folders with more than 2,000 entries now show the first page in the current order and a display-only last row counting the rest. Clicking it or pressing Enter shows the next page; picking a hidden entry in a chart or list shows its page. The filter keeps the row while a hidden entry matches, selection never returns it and copying skips it. The tree's selected entries are read from whole selected ranges instead of Qt's per-row selectedRows().
Qt's item views do not emit activated for Return on macOS, so pressing Enter on a large folder's last row did nothing there. The tree now handles Return and Enter on that row itself on every platform.
|
JE-Chen
temporarily deployed
to
windows-signing
November 19, 2026 09:36 — with
GitHub Actions
Inactive
This branch was previously deployed
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.



Summary
Releases what
devhas added since 0.2.13.Large folders no longer freeze the folder tree
selectedRows().Not verified
Test plan
ruff check .test_tree_paging.py(12 cases); the copy and macOS Enter cases fail without their fixesdev: the first run caught Return not activating on macOS, fixed in the second commit