title: Capture To Buffer QT
body: <p>I'm trying to capture an Image using QT, and write the image buffer into an object of the QBuffer class instead of saving it to a file. </p>
  
  <p>This is my code so far: </p>
  
  <pre><code>mBuffer-&gt;open(QBuffer::ReadWrite);
  mCameraImageCapture-&gt;setCaptureDestination(QCameraImageCapture::CaptureToBuffer);
  QImageEncoderSettings imageEncoderSettings;
  imageEncoderSettings.setCodec("image/BMP");
  mCameraImageCapture-&gt;setEncodingSettings(imageEncoderSettings);
  mCamera-&gt;setCaptureMode(QCamera :: CaptureStillImage);
  mCamera-&gt;start();
  mCamera-&gt;searchAndLock();
  mCamera-&gt;unlock();
  mBuffer-&gt;close();
  </code></pre>
  
  <p>Is it possible to capture the image into a buffer without saving it to file?</p>