I currently have an image displayed in the graphics view with the following function:
Qt Code:
  1. void Form::setImage(std::string filename)
  2. {
  3. QPixmap image(filename.c_str());
  4. image = image.transformed(QMatrix().rotate(-90), Qt::FastTransformation);
  5. ui.graphicsView->setBackgroundBrush(image);
  6. }
To copy to clipboard, switch view to plain text mode 

That seems to work fine (it takes the original image and rotates it 90 degrees cclockwise). So here's the problem, when I use the following function, to rotate the image further, it rotates the image but leaves the original image in the background. I went through the 40000 chips example, and I don't necessarily see anything different with my code. If anyone knows why the original image is shown beneath the rotation, please let me know. Here is the function:
Qt Code:
  1. void Form::scaleView(qreal scaleFactor)
  2. {
  3. qreal scale = pow(2.0, (scaleFactor) );
  4. QMatrix matrix;
  5. matrix.scale(scale, scale);
  6. matrix.rotate(levelRotate);
  7. ui.graphicsView->setMatrix(matrix);
  8. }
To copy to clipboard, switch view to plain text mode