开发者

Resize image to fit window in Qt

开发者 https://www.devze.com 2023-01-25 20:58 出处:网络
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

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号