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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.15.6
    • 5.15.5
    • Documentation
    • None
    • All
    • 4da7638f33bafb6ea991015491fc2bf3dd943eef (qt/tqtc-qtbase/5.15)
    • 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

        Issue Links

          For Gerrit Dashboard: QTBUG-95351
          # Subject Branch Project Status CR V

          Activity

            People

              diseraluca Luca Di Sera
              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