Hi,
I made a main window which has four frames (QFrame) in the grid layout. The first frame has a QGraphicsView to show an image set to QGraphicsPixmapItem.
I tried to implement functionality to "maximize" the first frame by hiding other three frames:
Qt Code:
  1. frame2->hide();
  2. frame3->hide();
  3. frame4->hide();
  4. view->fitInView(item, Qt::KeepAspectRatio);
To copy to clipboard, switch view to plain text mode 
With the code above the first frame (and the view) is expanded but the size of the image remains unchanged.

Could someone please give me a few pointers?