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

Missing Exception in qmutablelinkedlistiterator

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4: Low
    • None
    • 5.12.0
    • Documentation
    • None

    Description

      http://doc.qt.io/qt-5/qmutablelinkedlistiterator.html#value

       QLinkedList<qreal> data2 = QLinkedList<qreal>();
      
       data2.append(2.0);
       data2.append(1.5);
       data2.append(1.0);
       data2.append(0.5);
       QMutableLinkedListIterator<qreal> itterator(data2);
       itterator.toFront();
       qDebug() << "Debug";
       //qDebug() << itterator.value();  //<- Throws Assert Error
       qDebug() << itterator.next();
       

      The value function will cause an assert error if no other function like next has been called previously.

      This should be mentioned in the Documentation.

      Attachments

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

        Activity

          People

            docteam Qt Documentation Team
            dennis.restle Dennis Restle
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 20 minutes
                20m
                Remaining:
                Remaining Estimate - 20 minutes
                20m
                Logged:
                Time Spent - Not Specified
                Not Specified

                Gerrit Reviews

                  There are no open Gerrit changes