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

QQmlListProperty: prepare for transition to QList-free implementation

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • P4: Low
    • None
    • 6.0
    • None

    Description

      QQmlListProperty(QObject *object, QList<T *> &list) exists; a similar constructor taking a QVector does not. So if your storage is QVector you have to do more work to expose it as a QQmlListProperty (it can be done). The difficulty should be the other way around: easy to use QVector, but deprecate usage of QList ASAP.

      The name is unfortunate, but it's a public class. If we consider "list" to mean "sequence of objects" maybe it's OK.

      If we want to stop using QList in QtQuick APIs in Qt 6, we'd better get started with the transition now - at least make sure that new QList-based API doesn't get added to new classes.

      Attachments

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

        Activity

          People

            srutledg Shawn Rutledge
            srutledg Shawn Rutledge
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes