title: how to display image from array of colors data in Qt?
body: <p>I have a <code>char* data</code>, where every char represents red/green/blue/alpha value of a pixel.</p>
  
  <p>So, the first four numbers are red, green, blue and alpha value of the first pixel, the next four are R, G, B, A value of the pixel on the right and so on.</p>
  
  <p>It represents a picture (with previously known width and height).</p>
  
  <p>Now, I want to somehow take this array and display it on Qt window. How to do it?</p>
  
  <p>I know I should somehow use QPixmap and/or QImage, but I cannot find anything helpful in the documentation.</p>