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

Qt Bridge: Support automatic layouts

    XMLWordPrintable

Details

    Description

      See the attached example project.

       

      Expected generated code (no absolute positioning)

      Rectangle {
          id: frame
          // ...
      
          Row { // Or perhaps RowLayout
              id: frameLayout
              anchors.fill: parent
              spacing: 10
              topPadding: 20
              bottomPadding: 20
              leftPadding: 30
              rightPadding: 30
      
              Rectangle {
                  id: green_Box
                  // ...
              }
      
              Text {
                  id: hello
                  // ...
              }
      
              Rectangle {
                  id: blue_Box
                  // ...
              }
          }
      }
      

       

      Actual generated code (uses absolute positioning)

      Rectangle {
          id: frame
          // ...
      
          Rectangle {
              id: green_Box
              x: 30
              y: 20
              // ...
          }
      
          Text {
              id: hello
              x: 140
              y: 20
              // ...
          }
      
          Rectangle {
              id: blue_Box
              x: 296
              y: 20
              // ...
          }
      }
      

      See also: Layout Grids

      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
              skoh-qt Sze Howe Koh
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes