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

When the URI starts with a numeric string, qt_add_qml_module will generate erroneous code.

    XMLWordPrintable

Details

    • f4ea7af46 (dev), 77cca9a36 (6.8)

    Description

      In qt_add_qml_module, when the URI starts with a numeric string, the file build/app${project_name}_qmltyperegistrations.cpp will generate erroneous variable definitions:
       
      In the project's CMakeLists.txt, the following definitions exist:

      The generated build/app${project_name}_qmltyperegistrations.cpp is as follows, and at this point, compilation will fail:

      Compilation error message:

      Attachments

        1. image-2024-07-11-16-37-44-395.png
          9 kB
          Xiaoqiang Liang
        2. image-2024-07-11-16-38-06-480.png
          66 kB
          Xiaoqiang Liang
        3. image-2024-07-11-16-44-07-016.png
          98 kB
          Xiaoqiang Liang
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            semlanik Alexey Edelev
            xqliang Xiaoqiang Liang
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes