title: How to fill a Rectangle (a Rect object) with an image in Qt?
body: <p>I've tried this:</p>
  
  <pre><code>QBrush brush(QPixmap(":/new/prefix1/car.jpg"));
  painter.setBrush(brush);
  QRectF car(positions[i],120, 20, 10 );
  painter.drawRect(car);
  </code></pre>
  
  <p>It shows the image but it repeats itself during a simulation in QPaint.
  I want a way to fill a rectangle with an image but i'm not finding any specific methods for Rect. Any tricks for that?</p>