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

Resizing child of an item that has effect makes the child blank in 2D view

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • QDS 4.4
    • QDS 4.4
    • 2D View
    • None

    Description

      For example, the scene is something like this, where MultiEffect can be replaced by any effect created by effect maker:

          Item {
              id: item1
              width: 306
              height: 292
              layer.enabled: true
              layer.effect: MultiEffect {}        
      
              Rectangle {
                  id: rectangle1
                  x: 43
                  y: 34
                  width: 194
                  height: 192
                  color: "#ff0000"
                  radius: 120
                  baselineOffset: -7
                  layer.sourceRect.height: 0
                  layer.sourceRect.width: 0            
                  
                  Text {
                      id: label
                      x: -35
                      y: 72
                      width: 79
                      height: 44
                      text: qsTr("Hello")
                      font.family: Constants.font.family
                      anchors.topMargin: 45
                      font.pixelSize: 33
                      anchors.horizontalCenterOffset: 6
                      layer.enabled: true
                      anchors.horizontalCenter: parent.horizontalCenter
                  }
              }
          }
       

      If you resize or move the rectangle1 in 2D view, it goes blank. Resizing the parent item1 will make it appear again, as does resetting the puppet.

      Attachments

        For Gerrit Dashboard: QDS-11561
        # Subject Branch Project Status CR V

        Activity

          People

            e0348803 Miikka Heikkinen
            e0348803 Miikka Heikkinen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes