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: Fixed
    • 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

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

        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:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes