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

Auto-Layout generated code creates x,y values in child elements of layout

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • QDS 4.7.1
    • Qt-Bridge-Figma
    • None

    Description

      import QtQuick
      import QtQuick.Controls
      import QtQuick.Layouts 1.15

      Rectangle {
          id: frame_1
          width: 460
          height: 229
          color: "#747474"

          Rectangle {
              id: frame_2
              width: 140
              height: 191
              color: "transparent"
              anchors.left: parent.left
              anchors.top: parent.top
              anchors.leftMargin: 34
              anchors.topMargin: 21
              ColumnLayout {
                  id: frame_2_layout
                  anchors.left: parent.left
                  anchors.right: parent.right
                  anchors.top: parent.top
                  anchors.bottom: parent.bottom
                  spacing: 25
                  Rectangle

      {                 id: rectangle_1                 x: 0                 y: 0                 width: 140                 height: 29                 color: "#d9d9d9"                 Layout.preferredHeight: 29                 Layout.fillWidth: true                 Layout.alignment: Qt.AlignLeft | Qt.AlignTop             }

                  Rectangle

      {                 id: rectangle_2                 x: 0                 y: 54                 width: 140                 height: 29                 color: "#d9d9d9"                 Layout.preferredHeight: 29                 Layout.fillWidth: true                 Layout.alignment: Qt.AlignLeft | Qt.AlignTop             }

                  Rectangle

      {                 id: rectangle_3                 x: 0                 y: 108                 width: 140                 height: 29                 color: "#d9d9d9"                 Layout.preferredHeight: 29                 Layout.fillWidth: true                 Layout.alignment: Qt.AlignLeft | Qt.AlignTop             }

                  Rectangle

      {                 id: rectangle_4                 x: 0                 y: 162                 width: 140                 height: 29                 color: "#d9d9d9"                 Layout.preferredHeight: 29                 Layout.fillWidth: true                 Layout.alignment: Qt.AlignLeft | Qt.AlignTop             }

              }
          }
      }

      /*##^##
      Designer

      {     D\{i:0;uuid:"a164412a-ffef-5b3a-a1b4-0f4e53046362"}

      D{i:1;uuid:"825b705d-1b58-5dc3-98cd-3de82543c145"}
      D{i:2;uuid:"825b705d-1b58-5dc3-98cd-3de82543c145_VERTICAL"}D{i:3;uuid:"b6888fae-c03f-5d76-afb6-7f7fff6eff51"}
      D{i:4;uuid:"67fe4b92-cf91-5ce7-bf4d-4a611b881c98"}D{i:5;uuid:"9a886d40-f61b-553a-b49f-97ed2232a728"}
      D{i:6;uuid:"06e106ec-a238-582b-8d7e-813650fbc79b"}
      }
      ##^##*/

       

      Attachments

        Issue Links

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

          Activity

            People

              algerman Aleksei German
              peter.rohles Peter Rohles
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes