[Solved] Image sourcesizes
-
@
Image { ...
sourceSize.width: parent.width * 2 / 3
}
@i like the width, but i do not like the height of the image. how do you modify solely the height?
-
Well, use the same line as above, but substitute "width" with "height"... You can use the Item's "height" property, too.
-
i did not explain well. this width (sourceSize.width: parent.width * 2 / 3) is right, but i would double the height obtained from that code snippet. excuse me. thanks sierdzio!
-
According to the documentation, you could just change the width property and that would stretch your image as needed:
@
Image { ...
width: parent.width * 2 / 3
}
@ -
0k0k but i want a non-proportionated image!!
i like this
@
Image { ...
width: parent.width * 2 / 3
}
@
and i obtain the relative height, that i want to make larger! ;) -
Hi,
If you are using QtQuick 1.1 or higher you could try something like:
@height: implicitHeight * 2@
Regards,
Michael -
thanks but i am using QtQuick 1.0.