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

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

XMLWordPrintable

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

      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.

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

            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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes