https://github.com/midzer/filtertable
Qt large table example of filtering per column via QSortFilterProxyModel
https://github.com/midzer/filtertable
qt table
Last synced: 11 months ago
JSON representation
Qt large table example of filtering per column via QSortFilterProxyModel
- Host: GitHub
- URL: https://github.com/midzer/filtertable
- Owner: midzer
- License: mit
- Created: 2017-03-29T17:50:56.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-29T18:30:49.000Z (about 9 years ago)
- Last Synced: 2025-04-02T17:52:56.809Z (about 1 year ago)
- Topics: qt, table
- Language: C++
- Homepage:
- Size: 6.84 KB
- Stars: 8
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FilterTable
This Qt project shows an implementation of custom filtering in large tables (4 columns, 250000 rows).
Each column has its own QLineEdit. Optionally you can set QCheckBox if you want to filter for `Qt::CheckState`.
## Compile
* Load `FilterHeader.pro` in your Qt Creator and select Qt5 kit
* Run
If you need Qt4 support, replace
`setSectionsClickable()` with `setClickable()`
and `setSectionsMovable()` with `setMovable()`
in `filterheader.cpp`.
## Customization
Adjust `rowCount` or `columnCount` to your needs.
Try playing around with `filterReactionTime` if your table is even larger or you have a strong machine.