Qt: “ResizeEvent” to receive the size of the window and set it to the size of a QLabel
Qt/c++: I want to use ResizeEvent to receive the size of the window and set it to the size of a QLabel, in order to make the image stretched and adapted to the window's dimensions.by a left click of the mouse I can resize my window and the image takes a new size. the problem is that I'm new with Qt and I did not found examples of resizeEvent in the net.
Hi andwelcome to devnet forum
Somehow you have duplicated your post, please avoid duplication of posts.
Sorry it was unintentional
Hi and welcome
Is there a reason you simply dont use a layout ?
To make it autofollow the size of window ?
if you place a QLabel on a form ( mainwindow.ui) , right click somewhere on
empty form, and select Layout menu and select layout, the label will follow maniform.