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

(epilepsy warning) 2D preview stuck in resize loop

    XMLWordPrintable

Details

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

    Description

      I move a component into a new file to be reused elsewhere when i realise that the 2D preview has stuck resizing again and again.

       

      The override width/height are the defaul value (640/480)

      import QtQuick 2.15
      import QtQuick.Controls 2.15
      
      Component {
          Column {
              property var modelData: ListModel {
                  ListElement {}
              }        
              height: modelData.count
              spacing: 2        
              Repeater {
                  model: modelData
                  Item {}
              }
          }
      }
       

      The bug seem to be due to set the height and having a new Item in the object with the Repeater will being inside a Component.

      It's also work when replacing the Column with any Items 

      Attachments

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

        Activity

          People

            thohartm Thomas Hartmann
            dalverny Sébastien Dalverny
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes