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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • 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

    Description

      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

      Attachments

        Issue Links

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

          Activity

            People

              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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes