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

In the help pages: A fromVector() example is not right

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.15.5
    • Fix Version/s: 5.15.6
    • Component/s: Documentation
    • Labels:
      None
    • Platform/s:
      All
    • Commits:
      4da7638f33bafb6ea991015491fc2bf3dd943eef (qt/tqtc-qtbase/5.15)
    • Sprint:
      Da Vinci sprint 38

      Description

      Dear Qt developers:

      In https://doc.qt.io/qt-5/qlist.html it's written:

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

      But if, for example, T is `double`, you get:

      {{ error: no member named 'fromVector' in 'QVector<double>'}}

      which makes sense (because `QVector` doesn't have `fromVector()`, unlike `QList`).

      Thanks for making Qt better.

        Attachments

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

          Activity

            People

            Assignee:
            diseraluca Luca Di Sera
            Reporter:
            ganton Ganton
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes