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

QList documentation mistake in QList::fromVector()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.9.0
    • Documentation
    • None

      In the static method documentation QList::fromVector(), the exemple give:

      QList<double> list = QVector<T>::fromVector(vect);
      // list: [20.0, 30.0, 40.0, 50.0]

      whereas it should give:

      QList<double> list = QList<double>::fromVector(vect);
      // list: [20.0, 30.0, 40.0, 50.0]

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

            docteam Qt Documentation Team
            vithom Vincent THOMAS
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes