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

potential problem if two QML modules have class with the same name

    XMLWordPrintable

Details

    • All

    Description

      There is big potential problem in scenarios where two QML modules containĀ  classes with the same name, even if they are in different namespaces. When these classes are exposed to QML and the generated C++ code from the QML compiler (qmlsc) includes those types, it might not properly handle the namespace qualification, leading to ambiguities or incorrect type resolution.

      In above scenario when these types are imported into QML. then the generated qmlsc c++ will simply #include <TheType.h> without a qualifying path and will also not use the given namespace. Therefore the compiler can fail if the "assumed" type is in fact the wrong one.

      So if generated code some how can use library path or namespace then it would be great.

      Attachments

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

        Activity

          People

            qtqmlteam Qt Qml Team User
            irfan.omair@digia.com Irfan Omair
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes