title: Load images from folder to exact coordinates
body: <p>I have images, which names are the X and Y coordinates (i.e. &quot;100_100.jpg&quot;, &quot;200_100.jpg&quot;, &quot;100_200.jpg&quot;, &quot;200_200.jpg&quot;) in one folder (&quot;img&quot;). All images have the same width and height.</p>
  <p>So the question is: How I can load the images automatically to coordinates that they have in their names without creating thousand lines of repeating code? (I will have much more than only those 4 images to load so the automation is a must)</p>
  <p>Code:
  main.qml:</p>
  <pre><code>import QtQuick 2.15
  import QtQuick.Window 2.15
  
  Window {
      width: 1000
      height: 800
      visible: true
      title: qsTr(&quot;Tiled Photos&quot;)
  
      Rectangle {
          id: rectangle
          anchors.fill: parent
          anchors.margins: 20
          color: &quot;#cdecf9&quot;
  
          // THIS PART I WANT TO BE AUTOMATED:
          Image {
              id: img_100_100
              width: 100
              height: 100
              source: &quot;img/100_100.png&quot;
              asynchronous: true
              x: 100
              y: 100
          }
  
          Image {
              id: img_100_200
              width: 100
              height: 100
              source: &quot;img/100_200.png&quot;
              asynchronous: true
              x: 100
              y: 200
          }
  
          Image {
              id: img_200_100
              width: 100
              height: 100
              source: &quot;img/200_100.png&quot;
              asynchronous: true
              x: 200
              y: 100
          }
  
          Image {
              id: img_200_200
              width: 100
              height: 100
              source: &quot;img/200_200.png&quot;
              asynchronous: true
              x: 200
              y: 200
          }
          // END
  
      }
  }
  </code></pre>