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

QQmlListProperty has no examples of its usage

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.0.0
    • Documentation
    • None

    Description

      http://doc.qt.io/qt-5/qqmllistproperty.html#details should have a code example demonstrating how to provide some of the functions that the class requires. It's extremely inconvenient to have to grep through source code to find examples of it.

      Interestingly enough, the first example I found via Google uses a constructor that's not recommended for production code:

      Generally this constructor should not be used in production code, as a writable QList violates QML's memory management rules. However, this constructor can be very useful while prototyping.

      So an example that uses one of the other constructors (the simplest probably being this one) would be better.

      Attachments

        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:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes