Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
QDS 4.3
-
None
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.