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

canFetchMore() is called when it should not be

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.8.0 Alpha
    • None

    Description

      // abtract qml

      DatabaseQuery

      { id: dbquery; // query called to remote database when creation */ sql: "select * from big_table"; /* Q_PROPERTY(QAbstractItemModel* model READ model NOTIFY modelChanged FINAL) model implements canFetchMore and fetchMore */ }

      ListView

      { id: listView1; model: dbquery.model; }

      ListView

      { id: listView2; model: dbquery.model; // QQmlDelegateModelPrivate:requestMoreIfNecessary is called every time a model is assigned, although the model has enough data. }

      Attachments

        1. bug.png
          9 kB
          Alexander

        Issue Links

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

          Activity

            People

              w00t Robin Burchell
              lom2k Alexander
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes