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

QNetworkInterface::allAddresses() documentation has a typo

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P4: Low
    • 5.10.0
    • 5.5.1, 5.6.0, 5.6
    • Network
    • 0a98f790bf59bc66722a645d89c560771da7efb2

    Description

      QNetworkInterface::allAddresses() description is not accurate.
      It says that calling this function is equivalent to calling addressEntries() on all the objects returned by allInterfaces() to obtain lists of QHostAddress objects then calling QHostAddress::ip() on each of these.

      But addressEntries() actually returns a list of QNetworkAddressEntry and to obtain lists of QHostAddress you need to call QNetworkAddressEntry::ip().

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            Youw Ihor Dutchak
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes