Skip to content

davidlatwe/qoverview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

qoverview

A vertical space extended QTreeView.

The last row in default QTreeView always stays on bottom, this little project extends the vertical space so the view can be scrolled until last row hit the top of view. Which behaves like modern text editor that has virtual space enabled after last line.

qoverview

Run Example

Qt5.py is required. Or modify the scripts to use your Python Qt binding.

cd qoverview
python -m example

Usage

# your widget
class MyView(QtWidgets.QTreeView):
...

👇

# your widget, but superclass replaced
class MyView(qoverview.VerticalExtendedTreeView):
...

How it works

See paintEvent and you should get the picture. ☺️

Limitation

  • Scroll mode must be ScrollPerPixel.
  • Size adjust policy must be AdjustIgnored.
  • Row height must be uniformed.
  • Scroll bar may flicker during window resizing.

TODO

Currently only QTreeView extended, would be great to extend all QAbstractItemView subclasses. If it's possible.

About

Vertical space extended QTreeView

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages