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

qt6_generate_foreign_qml_types fails if there are no QML elements declared

XMLWordPrintable

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

      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.

       

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

            qtqmlteam Qt Qml Team User
            jschaubzes Johannes Schaub
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes