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

teach qmltc about forward declaration

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P2: Important
    • 6.6
    • 6.4.0
    • QML: Compiler

    Description

      Qmltc does not know about forward references and always tries to include all the private headers for all the types it finds.

      This is a problem because a simple project using an 'Item' end up requiring linking against Qt::GuiPrivate (while without compiler it works fine just being linked to Qt::Quick, which is the expected outcome).

      See attached project, reproduce by enabling the type compiler in the cmake.

      Attachments

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

        Activity

          People

            sami.shalayel Sami Shalayel
            sami.shalayel Sami Shalayel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes