Repeat image until fills the entire rectangle in QML
-
Hi everyone. So I'm facing a little problem. I'm not sure if it's an easy way to do this , but I have to ask.
So.. I have a rectangle and I want to fill the rectangle with a picture with the same height as the rectangle but with smaller width and I want the picture to repeat on x axis until it fills the entire rectangle.
With other words I'm looking for something similar with repeat background image from HTML/CSS:
@<div style="background-image:url('pic.jpg'); background-repeat:repeat-x;"></div>@Thanks
-
Looks like "this":http://doc.qt.nokia.com/4.7/qml-image.html#fillMode-prop property will help you