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

Inline Components + Positioner mess up the 2D view so badly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • Some future release
    • QDS 4.6.2
    • 2D View
    • None

    Description

      minimal reproduction repo: https://git.qt.io/mikio_hirai/inlinecomponent2dviewissueqds#

      Using inline Components with Positioners mess up the 2D view.

      With the code below:

      import QtQuick
      import QtQuick.Controls
      import InlineComponent
      Rectangle {
          id: rectangle
          width: Constants.width
          height: Constants.height    
          component MyRect: Rectangle {
              color: "red"
              width: 100
              height: 100
          }    
          Column {
              spacing: 20
              MyRect {}
              MyRect {}
              MyRect {}
          }
      }
       

      I got this. Notice the entire screen is displayed as if it's in the Positioner:

      Attachments

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

        Activity

          People

            thohartm Thomas Hartmann
            mikio_hirai Mikio Hirai
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes