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

REG: qVersion() no longer included in <QtGlobal>

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P1: Critical P1: Critical
    • 6.5.0 Beta1, 6.5.0
    • 6.5.0 FF
    • Core: Other
    • None
    • e4851fedd (dev)
    • Foundation Sprint 70, Foundation Sprint 71, Foundation Sprint 72

      The following program compiles fine with Qt 6.4.1 but not with a recent dev branch:

      #include <QtGlobal>
      
      int main(int argc, char *argv[])
      {
          qVersion();
      }
      

      On dev branch, it prints the error "error C3861: 'qVersion': identifier not found" and including qlibraryinfo.h instead fixes it. Our documentation also says to include QtGlobal for qVersion: https://doc.qt.io/qt-6/qtglobal.html

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

            mmutz Marc Mutz
            esabraha Eskil Abrahamsen Blomfeldt
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes