Resize image to fit window in Qt
I am using Qt to construct an application. My MainWindow con开发者_Go百科sists of an image of a map which I would like to be resized to the fit the window. This means when the window gets smaller the image gets smaller and vice versa. When the user selects a point on that image I want to remove this feature. I am new to Qt and haven't been able to figure this out. I am using QGraphicsView for this.
QGraphicsView::fitInView
精彩评论