Details
-
Suggestion
-
Resolution: Unresolved
-
P5: Not important
-
4.4.1
-
None
Description
As of 4.4.1, the QAbstractItemView API has two functions for retrieving the offset of the view: "int horizontalOffset() const" and "int verticalOffset() const". Given the prevalence of QPoint in all other geometry operations throughout Qt, it makes sense to me to add a "QPoint offset() const" function to QAbstractItemView (and its inheritors). This would make geometry arithmetic slightly less annoying.
It would probably also be useful to have a "QRect visibleArea() const" function that returns the offset along with the size of the viewable area.