Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to set the size of image in QWidget?
pvirk last edited by
I have QWidget that promoted to QVTKOpenGLNativeWidget where I am loading images.
But the image appears at the center of QWidget. I set size of QWidget with 512512.
I am loading dicom images which is also 512512 size in QWidget.
I want to know how to change the image size according to QWidget, so that it can fit into it completely.
I need it so that, I can get correct x, y coordinates of image by clicking on it, and that helps me for further image processing.
Any kind of help will be appreciated.
Thanks in advance.