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

Create a simple example that shows how to subclass QAbstractItemModel

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P2: Important
    • None
    • None
    • None

    Description

      Suppose you are a user that wants to subclass QAbstractItemModel, and you want to do the most basic thing: add the underlying data that the model uses. You go to https://doc.qt.io/qt-6/qabstractitemmodel.html. In order, you see:

      We need a simple example that explains how to subclass QAbstractItemModel and add item to display it as a list, preferably in Qt Widgets and Quick (so, separate examples).

      Attachments

        Issue Links

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

          Activity

            People

              docteam Qt Documentation Team
              mitch_curtis Mitch Curtis
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes