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

QSysInfo::productType() incorrectly documented

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 6.2.2
    • Fix Version/s: 6.2.3, 6.3.0 Alpha, 6.4.0 Beta1
    • Component/s: Core: Other
    • Labels:
      None
    • Environment:
      Qt 6.2.2
      macOS 12.1 (M1 chip)
    • Platform/s:
      macOS
    • Commits:
      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

            Assignee:
            thiago Thiago Macieira
            Reporter:
            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