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:
With the code above the first frame (and the view) is expanded but the size of the image remains unchanged.Qt Code:
frame2->hide(); frame3->hide(); frame4->hide(); view->fitInView(item, Qt::KeepAspectRatio);To copy to clipboard, switch view to plain text mode
Could someone please give me a few pointers?
Bookmarks