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

QSysInfo::productType() incorrectly documented

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important 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)

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes