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

Suggestions for QAbstractItemView

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Invalid
    • Not Evaluated
    • Some future release
    • 4.4.3
    • Other
    • None

    Description

      QAbstractItemView::setModel() is virtual, what is fine, while QAbstractItemView::setItemDelegate() isn't, what makes it hacky to connect to
      the current delegate sizeHintChanged() signal.

      Also QListView::setGridSize what forces the user to clean internally some things in the cache isn't virtual.

      QAbstractItemView should be virtual (the virtual table nowadays is not that expensive), since one can't never expect what the class that is inheriting QAbstractItemView will do.

      Attachments

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

        Activity

          People

            goffart Olivier Goffart (closed Nokia identity) (Inactive)
            engvolds Morten Engvoldsen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes