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

A problem will cause make fail

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P4: Low
    • None
    • 5.15.12, 6.4.1
    • Build tools: qmake
    • None
    • system:windows 11 QMake version: mingw81_32/64

    Description

      Files (.h or .cpp)begins with a capital letter will cause a problem when making.In this case the complier will give errors like “undefined reference to `classname::staticMetaObject” 。I had add the micro “Q_OBJECT” in the begin of the class. I check the makefie.debug(or .release) and find the makefile lost some MOC file included in the SOURCE. The problem was resolved when i modified the file's names form capital letter to lower case with no other changes.The appendixs are the demos of this case.

       

       

      Attachments

        1. 20221227203559.png
          20221227203559.png
          12 kB
        2. 20221227203645.png
          20221227203645.png
          20 kB
        3. QSimple_capital.rar
          41 kB
        4. QSimple_little.rar
          43 kB

        Issue Links

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

          Activity

            People

              qtbuildsystem Qt Build System Team
              guang ma guang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes