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

QStringListModel doesn't follow the default role of other models

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P4: Low P4: Low
    • 5.9
    • 5.7.1
    • Widgets: Itemviews
    • None

      When reimplementing QAbstractItemModel::data QStringListModel doesn't set the default value for the role argument as other models do (including the base class).
      I'm currently working with 5.7, but I peеked at the source for the dev branch and it applies to it as well.

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

            mmutz Marc Mutz
            kshegunov Konstantin Shegunov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes