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

inline components don't get handled properly on QDS

    XMLWordPrintable

Details

    Description

      the project is attached to this ticket.

      there are some issues observed regarding inline components.

      (1) 2d form view doens't show properly.

      with this code:

       

      import QtQuick
      import Constants
      Rectangle {
          width: Constants.width
          height: Constants.height
          color: Constants.backgroundColor
          component MyImage: Image {
              width: 100
              height: 100
              source: "imports/MCUDefaultStyle/images/dog.jpg"
          }
          component MyRectangle: Rectangle {
              width: 100
              height: 100
              color: "yellow"
          }    
          Column {
              Row {
                  Image {
                      width: 100
                      height: 100
                      source: "imports/MCUDefaultStyle/images/dog.jpg"
                  }
                  MyImage {
                      width: 100
                      height: 100
                      source: "imports/MCUDefaultStyle/images/dog.jpg"
                  }
              }        
              Row {
                  Rectangle {
                      width: 100
                      height: 100
                      color: "red"
                  }
                  MyRectangle {
                      width: 100
                      height: 100
                      color: "blue"
                  }
              }
          }
      } 

      2d form view shows like this with both QDS.qtFor MCUs being true and false in .qmlproject :

      (2) live preview doesn't start when QDS.qtFor MCUs being true being true in .qmlproject with this error:

      C:/Users/81808/Downloads/ImageComponent/Screen01.ui.qml:19:9: error: Failed to find image in the resource system
              source: "imports/MCUDefaultStyle/images/dog.jpg"
              ^~~~~~
      C:/Users/81808/Downloads/ImageComponent/Screen01.ui.qml:32:17: error: Failed to find image in the resource system
                      source: "imports/MCUDefaultStyle/images/dog.jpg"
                      ^~~~~~
      C:/Users/81808/Downloads/ImageComponent/Screen01.ui.qml:37:17: error: Failed to find image in the resource system
                      source: "imports/MCUDefaultStyle/images/dog.jpg"
                      ^~~~~~ 

      whereas when when QDS.qtFor MCUs is false, the livepreview works properly.

       

      Attachments

        Issue Links

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

          Activity

            People

              yasser Yasser Grimes
              mikio_hirai Mikio Hirai
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes