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

Create component: Silent failure when trying to create component with already existing name

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • QDS 4.8
    • Navigator
    • None

    Description

      • Create new empty project
      • Add Rectangle to the scene -> It gets id "rectangle1"
      • Select "Create component" from navigator view context menu for rectangle1
      • Suggested name is "MyRectangle1"
      • Click OK

      --> rectangle1 is converted into a MyRectangle1 component

      • Delete rectangle1
      • Add another Rectangle from components view -> It gets id "rectangle1"
      • Select "Create component" from navigator view context menu for rectangle1
      • Suggested name is "MyRectangle1" (I.e. same as already existing component)
      • Click OK

      --> MyRectangle1 component already exists, so nothing happens. There probably should be a warning or something, or maybe OK should be disabled so you can't even try it?

      You can create duplicate MyRectangle1 if you uncheck the "ui.qml file" checkbox on the second creation; then you end up with MyRectangle1.qml and MyRectangle1.ui.qml, which probably will cause some issues.

      Attachments

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

        Activity

          People

            henning Henning Gründl
            e0348803 Miikka Heikkinen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes