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

QSysInfo::productType() incorrectly documented

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 6.2.3, 6.3.0 Alpha, 6.4.0 Beta1
    • 6.2.2
    • Core: Other
    • None
    • Qt 6.2.2
      macOS 12.1 (M1 chip)
    • macOS
    • 60db7a5dc1 (qt/qtbase/dev) 303db71216 (qt/qtbase/6.3) 303db71216 (qt/tqtc-qtbase/6.3) 60db7a5dc1 (qt/tqtc-qtbase/dev) 9fb81b2775 (qt/qtbase/6.2) 9fb81b2775 (qt/tqtc-qtbase/6.2)

    Description

      The docs say:

      macOS note: this function returns "osx" for all macOS systems, regardless of Apple naming convention. The returned string will be updated for Qt 6. Note that this function erroneously returned "macos" for macOS 10.12 in Qt versions 5.6.2, 5.7.1, and 5.8.0.

      Doing

      qDebug() << QSysInfo::productType();
      

      returns "macos" on Qt 6.2.2 macOS.

      The docs need to be updated here.

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            nikwen Niklas Wenzel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes