Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-2915

API request: add a QPoint QAbstractItemView::offset() const function

    XMLWordPrintable

Details

    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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            sthomass Stian Sandvik Thomassen (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes