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

False doc for void QList::resize(qsizetype size)

    XMLWordPrintable

Details

    • All
    • 1
    • 58ebbb622 (dev), ae6ec2034 (6.5), 000d3d590 (tqtc/lts-6.2)
    • Foundation Sprint 78, Foundations Sprint 79, Foundations Sprint 80, Foundation Sprint 81

    Description

      https://doc.qt.io/qt-6/qlist.html#resize

      In the documentation for Qt 6 and QList::resize is written:

      Since Qt 5.6, resize() doesn't shrink the capacity anymore. To shed excess capacity, use squeeze().

      This is wrong, because resize() doesn't exist in QList for any Qt 5.x.

      It is also missing something like this:

      This function was introduced in Qt 6.x.

      Attachments

        Issue Links

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

          Activity

            People

              mmutz Marc Mutz
              tago Stefan Junge
              Vladimir Minenko Vladimir Minenko
              Alex Blasche Alex Blasche
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes