Uploaded image for project: 'Qt Design Studio'
  1. Qt Design Studio
  2. QDS-9829

Created component inherits all module imports from main file

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • QDS 4.1
    • All Other Issues
    • None
    • 2
    • 86d4fbab7 (qds/dev)
    • QDS Oulu - 2023 Week 19/20, QDS Oulu - 2023 Week 21/22, QDS Oulu - 2023 Week 23/24, QDS Oulu - 2023 Week 25/26

    Description

      When component is created using "Create component" button, it inherits all module imports that are added in main file, even though not all are relevant for the component.

      • Create general empty project
      • Add rectangle from Components to 2D view
      • Add some module imports, e.g. QtQuick3D, QtQuick Studio Components, QtQuick Layouts..
      • Choose rectangle1 in Navigator and click "Create Component" -> OK
      • Go inside the component
      • -> component file includes all the same imports as the main file. Would expect it to include only imports that are really needed for that component.

      Attachments

        For Gerrit Dashboard: QDS-9829
        # Subject Branch Project Status CR V

        Activity

          People

            ali.kianian Ali Kianian
            tanja_remes Tanja Remes
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes