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

QtQuick and controls examples use qt_add_resources to add QML files

    XMLWordPrintable

Details

    Description

      They should use qt_add_qml_module (list generated with git grep qt6_add_resources – examples | cat):

      • examples/quick/embeddedinwidgets/CMakeLists.txt:qt6_add_resources(embeddedinwidgets "embeddedinwidgets"
      • examples/quick/keyinteraction/CMakeLists.txt:qt6_add_resources(keyinteraction "keyinteraction"
      • examples/quick/models/abstractitemmodel/CMakeLists.txt:qt6_add_resources(abstractitemmodel "abstractitemmodel"
      • examples/quick/models/objectlistmodel/CMakeLists.txt:qt6_add_resources(objectlistmodel "objectlistmodel"
      • examples/quick/models/stringlistmodel/CMakeLists.txt:qt6_add_resources(stringlistmodel "stringlistmodel"
      • examples/quick/mousearea/CMakeLists.txt:qt6_add_resources(mousearea "mousearea"
      • examples/quick/particles/affectors/CMakeLists.txt:qt6_add_resources(affectors "affectors"
      • examples/quick/particles/affectors/CMakeLists.txt:qt6_add_resources(affectors "images"
      • examples/quick/particles/affectors/CMakeLists.txt:qt6_add_resources(affectors "shared"
      • examples/quick/particles/emitters/CMakeLists.txt:qt6_add_resources(emitters "emitters"
      • examples/quick/particles/emitters/CMakeLists.txt:qt6_add_resources(emitters "images"
      • examples/quick/particles/emitters/CMakeLists.txt:qt6_add_resources(emitters "shared"
      • examples/quick/particles/imageparticle/CMakeLists.txt:qt6_add_resources(imageparticle "imageparticle"
      • examples/quick/particles/imageparticle/CMakeLists.txt:qt6_add_resources(imageparticle "images"
      • examples/quick/particles/imageparticle/CMakeLists.txt:qt6_add_resources(imageparticle "shared"
      • examples/quick/particles/itemparticle/CMakeLists.txt:qt6_add_resources(itemparticle "images"
      • examples/quick/particles/itemparticle/CMakeLists.txt:qt6_add_resources(itemparticle "shared"
      • examples/quick/particles/itemparticle/CMakeLists.txt:qt6_add_resources(itemparticle "qmake_immediate"
      • examples/quick/particles/system/CMakeLists.txt:qt6_add_resources(system "system"
      • examples/quick/particles/system/CMakeLists.txt:qt6_add_resources(system "images"
      • examples/quick/particles/system/CMakeLists.txt:qt6_add_resources(system "shared"
      • examples/quick/rendercontrol/rendercontrol_d3d11/CMakeLists.txt:qt6_add_resources(rendercontrol_d3d11 "rendercontrol"
      • examples/quick/rendercontrol/rendercontrol_opengl/CMakeLists.txt:qt6_add_resources(rendercontrol_opengl "rendercontrol"
      • examples/quickcontrols2/chattutorial/chapter1-settingup/CMakeLists.txt:qt6_add_resources(chapter1-settingup "qml" https://codereview.qt-project.org/c/qt/qtdeclarative/+/380363
      • examples/quickcontrols2/chattutorial/chapter2-lists/CMakeLists.txt:qt6_add_resources(chapter2-lists "qml"
      • examples/quickcontrols2/chattutorial/chapter2-lists/CMakeLists.txt:qt6_add_resources(chapter2-lists "shared"
      • examples/quickcontrols2/chattutorial/chapter3-navigation/CMakeLists.txt:qt6_add_resources(chapter3-navigation "qml"
      • examples/quickcontrols2/chattutorial/chapter3-navigation/CMakeLists.txt:qt6_add_resources(chapter3-navigation "shared"
      • examples/quickcontrols2/chattutorial/chapter4-models/CMakeLists.txt:qt6_add_resources(chapter4-models "qml"
      • examples/quickcontrols2/chattutorial/chapter4-models/CMakeLists.txt:qt6_add_resources(chapter4-models "shared"
      • examples/quickcontrols2/chattutorial/chapter5-styling/CMakeLists.txt:qt6_add_resources(chapter5-styling "qml"
      • examples/quickcontrols2/chattutorial/chapter5-styling/CMakeLists.txt:qt6_add_resources(chapter5-styling "shared"
      • examples/quickcontrols2/contactlist/CMakeLists.txt:qt6_add_resources(contactlist "qmake_immediate"
      • examples/quickcontrols2/flatstyle/CMakeLists.txt:qt6_add_resources(flatstyle "qmake_immediate"
      • examples/quickcontrols2/gallery/CMakeLists.txt:qt6_add_resources(gallery_controls2 "qmake_immediate" # special case
      • examples/quickcontrols2/imagine/automotive/CMakeLists.txt:qt6_add_resources(automotive "icons"
      • examples/quickcontrols2/imagine/automotive/CMakeLists.txt:qt6_add_resources(automotive "imagine-assets"
      • examples/quickcontrols2/imagine/automotive/CMakeLists.txt:qt6_add_resources(automotive "qml"
      • examples/quickcontrols2/imagine/automotive/CMakeLists.txt:qt6_add_resources(automotive "qmake_immediate"
      • examples/quickcontrols2/imagine/musicplayer/CMakeLists.txt:qt6_add_resources(musicplayer "icons"
      • examples/quickcontrols2/imagine/musicplayer/CMakeLists.txt:qt6_add_resources(musicplayer "imagine-assets"
      • examples/quickcontrols2/imagine/musicplayer/CMakeLists.txt:qt6_add_resources(musicplayer "qmake_immediate"
      • examples/quickcontrols2/sidepanel/CMakeLists.txt:qt6_add_resources(sidepanel "qmake_immediate"
      • examples/quickcontrols2/swipetoremove/CMakeLists.txt:qt6_add_resources(swipetoremove "qmake_immediate"
      • examples/quickcontrols2/texteditor/CMakeLists.txt:qt6_add_resources(texteditor "texteditor"
      • examples/quickcontrols2/wearable/CMakeLists.txt:qt6_add_resources(wearable "wearable"

      Attachments

        Issue Links

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

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              ulherman Ulf Hermann
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes