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

qt6_generate_foreign_qml_types fails if there are no QML elements declared

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • Some future release
    • 6.5
    • QML: Tooling
    • None
    • Linux/X11

    Description

      qt_generate_foreign_qml_types should "Register[s] types from one target in a QML module.".

      However, it also checks whether the target contains QML elements at all, and fails if it doesn't.

      If you have a list of targets that might or might not contain QML_ELEMENTs or QML_NAMED_ELEMENTs, this is very annoying. Currently some of my targets only declare classes whose instances are added to the  QML engine by C++ code in our main function, but they may get QML_ELEMENTs any time.

       

      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
            jschaubzes Johannes Schaub
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes