Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-24841

Files from qt6_add_resources are not shown in project tree

    XMLWordPrintable

Details

    Description

      Open for example the stocqt example from Qt6 in Qt Creator.

      It uses qt6_add_resources to add all qml and data files. None of them are visible in the project tree.

      Adding

      target_sources(stocqt
        PRIVATE
        ${stocqt_resource_files}
      )
      

      makes them appear, but I suppose in the generic case this can be dangerous if the resource files contain actual compiled source files (.c / .cpp / ...) which should not be compiled.

      Attachments

        Issue Links

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

          Activity

            People

              Unassigned Unassigned
              con Eike Ziller
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes